Пример #1
0
 def test_div5(self):
     self.assertEqual(div(5), [1, 2, "Buzz", 4, "Fizz"])
Пример #2
0
 def test_div3(self):
     self.assertEqual(div(3), [1, 2, "Buzz"])
Пример #3
0
 def test_div12(self):
     self.assertEqual(div(12), [1, 2, "Buzz", 4, "Fizz", "Buzz", 7, 8, "Buzz", "Fizz", 11, "Buzz"])
Пример #4
0
 def test_div15(self):
     self.assertEqual(div(15),
                      [1, 2, "Buzz", 4, "Fizz", "Buzz", 7, 8, "Buzz", "Fizz", 11, "Buzz", 13, 14, "BuzzFizz"])
Пример #5
0
 def test_div9(self):
     self.assertEqual(div(9), [1, 2, "Buzz", 4, "Fizz", "Buzz", 7, 8, "Buzz"])