Commit c19bd0eb authored by Miriam Sexton's avatar Miriam Sexton
Browse files

Test for oembed

parent d194597f
......@@ -42,6 +42,15 @@ class TweepyAPITests(unittest.TestCase):
self.api.retry_count = 2
self.api.retry_delay = 5
# 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)
self.assertEqual(data['author_name'], "Twitter")
def testhometimeline(self):
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