Beispiel #1
0
 def test_should_return_FizzBuzz_for_fifteen(self):
     self.assertEqual(self.FIZZ_CONST + self.BUZZ_CONST,
                      FizzBuzzClass.evaluate(15),
                      "FizzBuzz.evaluate(15) should return 'Fizz'+'Buzz'")
Beispiel #2
0
 def test_should_return_seven_for_seven(self):
     self.assertEqual(7, FizzBuzzClass.evaluate(7),
                      "FizzBuzz.evaluate(7) should return 7")
Beispiel #3
0
 def test_should_return_Buzz_for_ten(self):
     self.assertEqual(self.BUZZ_CONST, FizzBuzzClass.evaluate(10),
                      "FizzBuzz.evaluate(10) should return 'Buzz'")
Beispiel #4
0
 def test_should_return_Fizz_for_six(self):
     self.assertEqual(self.FIZZ_CONST, FizzBuzzClass.evaluate(6),
                      "FizzBuzz.evaluate(6) should return 'Fizz'")
Beispiel #5
0
 def test_should_return_four_for_four(self):
     self.assertEqual(4, FizzBuzzClass.evaluate(4),
                      "FizzBuzz.evaluate(4) should return 4")
Beispiel #6
0
 def test_should_return_fizz_for_three(self):
     self.assertEqual(self.FIZZ_CONST, FizzBuzzClass.evaluate(3),
                      "FizzBuzz.evaluate(3) should return 'Fizz'")
Beispiel #7
0
 def test_should_return_two_for_two(self):
     self.assertEqual(2, FizzBuzzClass.evaluate(2),
                      "FizzBuzz.evaluate(2) should return 2")
Beispiel #8
0
 def test_should_return_one_for_one(self):
     self.assertEqual(1, FizzBuzzClass.evaluate(1),
                      "FizzBuzz.evaluate(1) should return 1")