Example #1
0
 def test_two(self):
     self.assertEqual("1\n2", FizzBuzz.generate(2))
Example #2
0
 def test_one(self):
     self.assertEqual("1", FizzBuzz.generate(1))
Example #3
0
 def test_five(self):
     self.assertEqual("1\n2\nFizz\n4\nBuzz", FizzBuzz.generate(5))
Example #4
0
 def test_fifteen(self):
     self.assertEqual("1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz", FizzBuzz.generate(15))
Example #5
0
 def test_three(self):
     self.assertEqual("1\n2\nFizz", FizzBuzz.generate(3))