コード例 #1
0
ファイル: tests.py プロジェクト: pombredanne/combinatorix
 def test_tweet_hashtag(self):
     input = 'Ombi Natori combine combinators using combinatorix #Python'
     output = tweet(input)
     hashtag = '<a href="#Python">#Python</a>'
     expected = 'Ombi Natori combine combinators using combinatorix %s'
     expected = expected % hashtag
     self.assertEqual(output, expected)
コード例 #2
0
ファイル: tests.py プロジェクト: pombredanne/combinatorix
 def test_tweet_link(self):
     input = 'Ombi Natori combine combinators using combinatorix #Python'
     input += ' Get it at https://github.com/amirouche/combinatorix#combinatorix'
     output = tweet(input)
     hashtag = '<a href="#Python">#Python</a>'
     expected = 'Ombi Natori combine combinators using combinatorix %s'
     expected = expected % hashtag
     url = 'https://github.com/amirouche/combinatorix#combinatorix'
     expected += ' Get it at <a href="%s">%s</a>' % (url, url)
     self.assertEqual(output, expected)
コード例 #3
0
ファイル: tests.py プロジェクト: pombredanne/combinatorix
 def test_tweet_simple(self):
     input = 'Ombi Natori combine combinators using combinatorix'
     output = tweet(input)
     self.assertEqual(input, output)