Exemplo n.º 1
0
 def test_isOdd_6(self):
     self.assertTrue(isOdd(-21))
Exemplo n.º 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])
Exemplo n.º 3
0
 def test_isOdd_5(self):
     self.assertFalse(isOdd(-10))
Exemplo n.º 4
0
 def test_isOdd_4(self):
     self.assertTrue(isOdd(21))
Exemplo n.º 5
0
 def test_isOdd_3(self):
     self.assertFalse(isOdd(10))
Exemplo n.º 6
0
 def test_isOdd_2(self):
     self.assertTrue(isOdd(1))
Exemplo n.º 7
0
 def test_isOdd_1(self):
     self.assertFalse(isOdd(0))