예제 #1
0
 def test_if_number_not_is_odd_is_odd(self):
     self.assertFalse(filters.is_odd(2))
예제 #2
0
 def test_if_number_is_odd_is_odd(self):
     self.assertTrue(filters.is_odd(1))
예제 #3
0
 def test_if_number_not_is_odd_is_odd(self):
     self.assertFalse(filters.is_odd(2))
예제 #4
0
 def test_if_number_is_odd_is_odd(self):
     self.assertTrue(filters.is_odd(1))
예제 #5
0
def test_is_odd_with_not_odd_number_should_return_false():
    assert not filters.is_odd(2)
예제 #6
0
def test_is_odd_with_odd_number_should_return_true():
    assert filters.is_odd(1)