Beispiel #1
0
 def test_odd_number_is_false(self):
     test_number = self.fake.random_number() * 2 + 1
     is_odd_number = OddNumber.odd_number(test_number)
     self.assertEquals(is_odd_number, False)
Beispiel #2
0
 def test_odd_number_not_none(self):
     test_number = self.fake.random_number()
     is_odd_number = OddNumber.odd_number(test_number)
     self.assertIsNotNone(is_odd_number)
Beispiel #3
0
 def test_odd_number_is_tre(self):
     test_number = self.fake.random_number() * 2
     is_odd_number = OddNumber.odd_number(test_number)
     self.assertEquals(is_odd_number, True)