コード例 #1
0
 def test_should_return_false_in_other_cases(self):
     actual = FizzBuzz.check_input('toto')
     self.assertFalse(actual, 'Should be False')
コード例 #2
0
from FizzBuzz import FizzBuzz

print("Welcome to FizzBuzz !")
print("Write an integer and press Return...")
number = input()

if FizzBuzz.check_input(number):
    print(FizzBuzz.answer(int(number)))

print("La bise !")
コード例 #3
0
 def test_should_return_n_when_int(self):
     actual = FizzBuzz.check_input(8)
     self.assertTrue(actual, 'Should be True')