~robru/friends/model-cleanup

« back to all changes in this revision

Viewing changes to friends/tests/test_facebook.py

  • Committer: Robert Bruce Park
  • Date: 2013-04-02 21:01:26 UTC
  • Revision ID: robert.park@canonical.com-20130402210126-lmr0l99cq2acg7na
Thread Facebook replies properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
            'http://facebook.com/post_id')
270
270
 
271
271
        token.assert_called_once_with()
272
 
        publish.assert_called_with({'id': 'post_id'})
 
272
        publish.assert_called_with(entry={'id': 'post_id'},
 
273
                                   stream='messages')
273
274
        self.assertEqual(
274
275
            dload.mock_calls,
275
276
            [mock.call(),
298
299
            'http://facebook.com/new_post_id')
299
300
 
300
301
        token.assert_called_once_with()
301
 
        publish.assert_called_with({'id': 'post_id'})
 
302
        publish.assert_called_with(entry={'id': 'post_id'},
 
303
                                   stream='messages')
302
304
        self.assertEqual(
303
305
            dload.mock_calls,
304
306
            [mock.call(),
327
329
            'http://facebook.com/private_message_id')
328
330
 
329
331
        token.assert_called_once_with()
330
 
        publish.assert_called_with({'id': 'comment_id'})
 
332
        publish.assert_called_with(entry={'id': 'comment_id'},
 
333
                                   stream='reply_to/post_id')
331
334
        self.assertEqual(
332
335
            dload.mock_calls,
333
336
            [mock.call(),