Пример #1
0
 def test_equals(self):
     self.assertEqual(wordify(1), 'one')
Пример #2
0
 def test_equals_2(self):
     self.assertEqual(wordify(10), 'ten')
Пример #3
0
 def test_equals_8(self):
     self.assertEqual(wordify(120), 'one hundred twenty')
Пример #4
0
 def test_equals_9(self):
     self.assertEqual(wordify(326), 'three hundred twenty six')
Пример #5
0
 def test_equals_7(self):
     self.assertEqual(wordify(100), 'one hundred')
Пример #6
0
 def test_equals_6(self):
     self.assertEqual(wordify(90), 'ninety')
Пример #7
0
 def test_equals_5(self):
     self.assertEqual(wordify(56), 'fifty six')
Пример #8
0
 def test_equals_4(self):
     self.assertEqual(wordify(17), 'seventeen')
Пример #9
0
 def test_equals_3(self):
     self.assertEqual(wordify(12), 'twelve')