From c19bd0eb00b90425127402a13035293509685c8b Mon Sep 17 00:00:00 2001 From: Miriam Sexton Date: Wed, 13 Feb 2013 10:10:14 -0500 Subject: [PATCH] Test for oembed --- tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests.py b/tests.py index 604218d..fcacc60 100644 --- a/tests.py +++ b/tests.py @@ -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): self.api.home_timeline() -- 2.25.1