예제 #1
0
 def test_isOdd_6(self):
     self.assertTrue(isOdd(-21))
예제 #2
0
 def test_isOdd_8(self):
     # This is what a test case looks like when you
     # expect that an error will happen
     with self.assertRaises(TypeError):
         x = isOdd([1])
예제 #3
0
 def test_isOdd_5(self):
     self.assertFalse(isOdd(-10))
예제 #4
0
 def test_isOdd_4(self):
     self.assertTrue(isOdd(21))
예제 #5
0
 def test_isOdd_3(self):
     self.assertFalse(isOdd(10))
예제 #6
0
 def test_isOdd_2(self):
     self.assertTrue(isOdd(1))
예제 #7
0
 def test_isOdd_1(self):
     self.assertFalse(isOdd(0))