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