projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d194597
)
Test for oembed
author
Miriam Sexton
<miriam@industrydive.com>
Wed, 13 Feb 2013 15:10:14 +0000
(10:10 -0500)
committer
Miriam Sexton
<miriam@industrydive.com>
Wed, 13 Feb 2013 15:10:14 +0000
(10:10 -0500)
tests.py
patch
|
blob
|
blame
|
history
diff --git
a/tests.py
b/tests.py
index 604218dcaa52e11f03d5f5648bd65fd3eac6a3a9..fcacc603fcdd73c769014568d866a1045834f5fe 100644
(file)
--- 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()