Fixes for last commit
authorMiriam Sexton <miriam@industrydive.com>
Wed, 13 Feb 2013 15:22:53 +0000 (10:22 -0500)
committerMiriam Sexton <miriam@industrydive.com>
Wed, 13 Feb 2013 15:22:53 +0000 (10:22 -0500)
tests.py
tweepy/api.py

index fcacc603fcdd73c769014568d866a1045834f5fe..8ce7ce08fb886476531c1efcc711eff85e9b9bb1 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -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")
 
 
index aee0d10111ad3be3c8589e5c6ad50b8fa3a12e61..273e059d9271e93a0c28f0766764f687305197e2 100644 (file)
@@ -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']
     )