Example #1
0
 def test_post_prepare_create_params(self):
     text = 'test text'
     expected_config = {
         'owner_id': GROUP_ID * -1,
         'friends_only': 0,
         'from_group': '',
         'message': text,
         'attachments': u'',
         'services': '',
         'signed': 0,
         'publish_date': '',
         'lat': '',
         'long': '',
         'place_id': '',
         'post_id': ''
     }
     group = GroupFactory(remote_id=GROUP_ID)
     post = PostFactory()
     post.wall_owner = group
     post.text = text
     self.assertEqual(post.prepare_create_params(), expected_config)
Example #2
0
 def test_post_prepare_create_params(self):
     text = 'test text'
     expected_config = {
         'owner_id': GROUP_ID * -1,
         'friends_only': 0,
         'from_group': '',
         'message': text,
         'attachments': u'',
         'services': '',
         'signed': 0,
         'publish_date': '',
         'lat': '',
         'long': '',
         'place_id': '',
         'post_id': ''
     }
     group = GroupFactory(remote_id=GROUP_ID)
     post = PostFactory()
     post.wall_owner = group
     post.text = text
     self.assertEqual(post.prepare_create_params(), expected_config)