def test_it_should_assert_less_than_for_invalid_arguments(self): try: assertions.assertLessThan(1, 2) self.fail("did not identify that 2 > 1") except assertions.AssertionFailedError, e: self.assertEqual('expected 2 to be less than 1', e.message)
def test_it_should_assert_less_than_for_valid_arguments(self): self.assertEqual(True, assertions.assertLessThan(2, 1), "did not identify that 1 < 2")