MCPcopy Index your code
hub / github.com/ryanmcgrath/twython / test_basic

Method test_basic

tests/test_html_for_tweet.py:24–29  ·  view source on GitHub ↗

Test HTML for Tweet returns what we want

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

load_tweetMethod · 0.95
html_for_tweetMethod · 0.80

Tested by

no test coverage detected