Example #1
0
    def test_not_multiple_of_3_and_5(self):

        list_zz = solve_fizzbuzz(4)
        expected = 4
        self.assertEqual(list_zz, expected)
Example #2
0
    def test_multiple_of_5(self):

        list_zz = solve_fizzbuzz(5)
        expected = "buzz"
        self.assertEqual(list_zz, expected)
Example #3
0
    def test_solve_fizzbuzz_zero(self):

        with self.assertRaises(ValueError):
            solve_fizzbuzz(0)