def test_number(): fb = FizzBuzz.play(1) assert fb == 1
def test_fizz(): fb = FizzBuzz.play(3) assert fb == 'Fizz'
def test_returns_fizz_when_10(self): fizzbuzz = FizzBuzz() assert fizzbuzz.play(10) == 'fizz'
def test_buzz(): fb = FizzBuzz.play(5) assert fb == 'Buzz'
def test_returns_num_when_4(self): fizzbuzz = FizzBuzz() assert fizzbuzz.play(4) == 4
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)