# TODO: Actually have some sort of better assertion
def testgetoembed(self):
print "testgetoembed"
- json_str = self.api.get_oembed(test_tweet_id)
- data = json.loads(json_str)
-
+ data = self.api.get_oembed(test_tweet_id)
self.assertEqual(data['author_name'], "Twitter")
''' statuses/oembed '''
get_oembed = bind_api(
- path = '1.1/statuses/oembed.json',
+ path = '/statuses/oembed.json',
payload_type = 'json',
allowed_param = ['id', 'url', 'maxwidth', 'hide_media', 'omit_script', 'align', 'related', 'lang']
)