コード例 #1
0
 def test_returns_fizz_with_value_9(self):
   game = Fizzbuzz()
   result = game.play(9)
   self.assertEqual('fizz', result)
コード例 #2
0
def test_fizz():
    fizzbuzz = Fizzbuzz()
    assert fizzbuzz.play(3) == "Fizz"
コード例 #3
0
def test_buzz():
    fizzbuzz = Fizzbuzz()
    assert fizzbuzz.play(5) == "Buzz"
コード例 #4
0
def test_number():
    fizzbuzz = Fizzbuzz()
    assert fizzbuzz.play(2) == 2