Commit 1db140d8 authored by Miriam Sexton's avatar Miriam Sexton
Browse files

Fixes for last commit

parent c19bd0eb
......@@ -45,9 +45,7 @@ class TweepyAPITests(unittest.TestCase):
# 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")
......
......@@ -138,7 +138,7 @@ class API(object):
''' 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']
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment