コード例 #1
0
ファイル: test_inxwords.py プロジェクト: hugovk/inXwords
 def test_insixwords(self):
     intext = "#SomethingInSixWords"
     how_many = inxwords.ends_with_in_x_words(intext)
     self.assertEqual(how_many, 6)
コード例 #2
0
ファイル: test_inxwords.py プロジェクト: hugovk/inXwords
 def test_infivewords(self):
     intext = "#SomethingInFiveWords"
     how_many = inxwords.ends_with_in_x_words(intext)
     self.assertEqual(how_many, 5)
コード例 #3
0
ファイル: test_inxwords.py プロジェクト: hugovk/inXwords
 def test_myfeelingsinthreewords(self):
     intext = "#MyFeelingsInThreeWords"
     how_many = inxwords.ends_with_in_x_words(intext)
     self.assertEqual(how_many, 3)
コード例 #4
0
ファイル: test_inxwords.py プロジェクト: hugovk/inXwords
 def test_grammysin5words(self):
     intext = "#GrammysIn5Words"
     how_many = inxwords.ends_with_in_x_words(intext)
     self.assertEqual(how_many, 5)
コード例 #5
0
ファイル: test_inxwords.py プロジェクト: hugovk/inXwords
 def test_not_found(self):
     intext = "#cymruambyth"
     how_many = inxwords.ends_with_in_x_words(intext)
     self.assertEqual(how_many, 0)
コード例 #6
0
ファイル: test_inxwords.py プロジェクト: hugovk/inXwords
 def test_none(self):
     intext = None
     how_many = inxwords.ends_with_in_x_words(intext)
     self.assertEqual(how_many, 0)