def test_get_line_mod_3_is_fizz(self): self.assertEqual(fizzbuzz.get_line(3), "fizz") self.assertEqual(fizzbuzz.get_line(9), "fizz")
def test_get_line_mod_5_and_3_is_fizzbuzz(self): self.assertEqual(fizzbuzz.get_line(15), "fizzbuzz") self.assertEqual(fizzbuzz.get_line(45), "fizzbuzz")
def test_get_line_returns_itself_str_otherwise(self): self.assertEqual(fizzbuzz.get_line(7), "7")
def test_get_line_mod_5_is_buzz(self): self.assertEqual(fizzbuzz.get_line(5), "buzz") self.assertEqual(fizzbuzz.get_line(100), "buzz")