def test_5_is_buzz(self): numbers = [5, 10, 20, 25, 35] for number in numbers: with self.subTest(number=number): self.assertEqual(fizzbuzz(number), 'Buzz')
def test_15_is_fizzbuzz(self): numbers = [15, 30, 60, 45] for number in numbers: with self.subTest(number=number): self.assertEqual(fizzbuzz(number), 'FizzBuzz')
def test_1_is_1(self): self.assertEqual(fizzbuzz(1), '1')
def test_is_fizz(self): numbers = [3, 6, 9, 12, 18] for number in numbers: with self.subTest(number=number): self.assertEqual(fizzbuzz(number), 'Fizz')
def test_non_list_inputs(self): self.assertEqual(fizzbuzz(5, 8), "Invalid input")
def test_non_list_input(self): self.assertEqual(fizzbuzz([2, 3, 4], 7), "Invalid input")
def test_both_empty(self): self.assertEqual(fizzbuzz([1, 3, 5], []), "fizz")
def test_other_total(self): self.assertEqual(fizzbuzz([4, 5, 6], [3]), 4)
def test_fizz_buzz(self): self.assertEqual( fizzbuzz([1, 2, 3, 3, 4, 5, 5, 5, 5, 6], [7, 7, 4, 5, 9]), "fizzbuzz")
def test_buzz(self): self.assertEqual(fizzbuzz([4, 5, 4], [3, 4]), "buzz")
def test_fizz(self): self.assertEqual(fizzbuzz([1, 3, 4], ['a', 'b', 'c']), "fizz")