Пример #1
0
 def test_multiple_of_five(self):
     self.assertEqual(fizzbuzzkata.process(20), 'Buzz')
Пример #2
0
 def test_multiple_of_three(self):
     self.assertEqual(fizzbuzzkata.process(6), 'Fizz')
Пример #3
0
 def test_multiple_of_ten(self):
     self.assertEqual(fizzbuzzkata.process(100), 'Buzz')
Пример #4
0
 def test_regular_numbers(self):
     self.assertEqual(fizzbuzzkata.process(2), 2)
     self.assertEqual(fizzbuzzkata.process(98), 98)
Пример #5
0
 def test_multiple_of_six(self):
     self.assertEqual(fizzbuzzkata.process(30), 'Fizz')