Exemple #1
0
def test_number():
    fb = FizzBuzz.play(1)
    assert fb == 1
Exemple #2
0
def test_fizz():
    fb = FizzBuzz.play(3)
    assert fb == 'Fizz'
Exemple #3
0
 def test_returns_fizz_when_10(self):
     fizzbuzz = FizzBuzz()
     assert fizzbuzz.play(10) == 'fizz'
Exemple #4
0
def test_buzz():
    fb = FizzBuzz.play(5)
    assert fb == 'Buzz'
Exemple #5
0
 def test_returns_num_when_4(self):
     fizzbuzz = FizzBuzz()
     assert fizzbuzz.play(4) == 4
Exemple #6
0
 def test_returns_buzz_when_6(self):
     fizzbuzz = FizzBuzz()
     assert fizzbuzz.play(6) == 'buzz'
 def test_return_buzz(self):
     f = FizzBuzz()
     self.assertEqual(f.play(5), "Buzz")
 def test_return_fizz(self):
     f = FizzBuzz()
     self.assertEqual(f.play(3), "Fizz")
 def test_return_num(self):
     f = FizzBuzz()
     self.assertEqual(f.play(2), 2)