def testCanBeUsedAsTestCase(self): tc = th.FakeTestCase() with self.assertRaises(AssertionError): th.assertNumbersEqual(tc, 1, 2) self.assertIsInstance(tc, unittest.TestCase)
def testDifferenceEqualToToleranceIsEqual(self): """Test that a difference equal to the tolerance does not assert.""" th.assertNumbersEqual(self, 0, 1, 1)