def test_it_should_assert_greater_than_for_invalid_arguments(self): try: assertions.assertGreaterThan(2, 1) self.fail("did not identify that 2 > 1") except assertions.AssertionFailedError, e: self.assertEqual('expected 1 to be greater than 2', e.message)
def test_it_should_assert_greater_than_for_valid_arguments(self): self.assertEqual(True, assertions.assertGreaterThan(1, 2), "did not identify that 2 > 1")