def test_successful_to_be_less_than(self): expect_object = Expect(10) expect_object.negate = False try: expect_object.to_be_less_than(15) except ExpectationException: raise AssertionError
def test_failure_to_be_less_than(self): expect_object = Expect(10) expect_object.negate = False with self.assertRaises(ExpectationException): expect_object.to_be_less_than(5)