Test HTML for Tweet returns what we want
(self)
| 22 | return tweet |
| 23 | |
| 24 | def test_basic(self): |
| 25 | """Test HTML for Tweet returns what we want""" |
| 26 | tweet_object = self.load_tweet('basic') |
| 27 | tweet_text = self.api.html_for_tweet(tweet_object) |
| 28 | self.assertEqual(tweet_text, |
| 29 | '<a href="http://t.co/FCmXyI6VHd" class="twython-url">google.com</a> is a <a href="https://twitter.com/search?q=%23cool" class="twython-hashtag">#cool</a> site, lol! <a href="https://twitter.com/mikehelmick" class="twython-mention">@mikehelmick</a> shd <a href="https://twitter.com/search?q=%23checkitout" class="twython-hashtag">#checkitout</a>. Love, <a href="https://twitter.com/__twython__" class="twython-mention">@__twython__</a> <a href="https://t.co/67pwRvY6z9" class="twython-url">github.com</a> <a href="http://t.co/N6InAO4B71" class="twython-media">pic.twitter.com/N6InAO4B71</a>') |
| 30 | |
| 31 | def test_reply(self): |
| 32 | """Test HTML for Tweet links the replied-to username.""" |
nothing calls this directly
no test coverage detected