20, 300] for number in numbers: self.assertTrue(A(number)) def test_negative(self): numbers = [-1, -20, -300] for number in numbers: self.assertFalse(A(number)) def test_zero(self): self.assertTrue(A(0)) 5SVF͕ฦΔͣ 'BMTF͕ฦΔͣ ʁʁʁʁʁ
File "/path/to/hoge.py", line 21, in test_zero self.assertTrue(A(0)) AssertionError: None is not true --------------------------------------------------- Ran 3 tests in 0.001s FAILED (failures=1) ݁Ռ͕A5SVFA ͡Όͳ͍Αʂ ˔ ςετʹࣦഊ͢Δ ͕ࣗ༧ظͨ͠ͷͱҧ͏݁Ռ͕ฦ͖ͬͯͨ ˔ ςετέʔεΛਖ਼͘͠ઃఆ͢Δ͜ͱ͕ॏཁ