def testLinkUsernameWithPunctuation(self):
     """A Twitter username with trailing punctuation can be linked."""
     expected = """@<a href="http://twitter.com/NuerOb/">NuerOb</a>: I am like a pot roast, but better!"""
     result = TwitterStatus.link_users(self.tweet_with_username)
     assert result == expected
 def testLinkUsername(self):
     """Twitter usernames are automatically linked."""
     expected = """@<a href="http://twitter.com/mozzarella/">mozzarella</a> Are you buffalo or garden variety?"""
     result = TwitterStatus.link_users(self.tweet_with_username)
     assert result == expected