Пример #1
0
 def test_even(seff):
     even = is_even.is_even(2)
     assert (even is True)
Пример #2
0
 def test_negative(self):
     try:
         is_even.is_even(-10)
     except Exception:
         pass
Пример #3
0
    def test_odd(self):
        odd = is_even.is_even(3)

        assert (odd is False)
Пример #4
0
 def test_cache(self):
     assert (is_even.is_even(2) is True)
     assert (is_even.is_even(3) is False)
Пример #5
0
 def test_not_even(self):
     even = is_even.is_even(3)
     assert (even is False)