def test_almostEqual_NotAlmostEqual_TooManyPointsApart(self): self.assert_(not PigTest.almostEqual(28.00001, 25.000003814697266, 4))
def test_almostEqual_NotAlmostEqual_IntegerPart(self): self.assert_(not PigTest.almostEqual(28.000002, 25.000003814697266, 4))
def test_almostEqual_AreAlmostEqual(self): self.assert_(PigTest.almostEqual(25.000002, 25.000003814697266, 4))