Exemplo n.º 1
0
    def test_successful_not_to_be_greater_than(self):
        expect_object = Expect(10)
        expect_object.negate = True

        try:
            expect_object.to_be_greater_than(15)
        except ExpectationException:
            raise AssertionError
Exemplo n.º 2
0
    def test_failure_not_to_be_greater_than(self):
        expect_object = Expect(10)
        expect_object.negate = True

        with self.assertRaises(ExpectationException):
            expect_object.to_be_greater_than(5)