Exemple #1
0
 def test_should_return_fizzbuzz(self):
     test_patterns = [
         (15, "FizzBuzz"),
         (30, "FizzBuzz"),
     ]
     for number, expected in test_patterns:
         with self.subTest(number=number, expected=expected):
             actual = fizzbuzz.execute(number)
             self.assertEqual(actual, expected)
Exemple #2
0
import fizzbuzz

fizzbuzz.execute()
Exemple #3
0
 def test_should_return_number_string(self, number, expected):
     actual = fizzbuzz.execute(number)
     self.assertEqual(actual, expected)