def test_fails(self): try: assert_almost_equal(1, 1.0000001) assert False except AssertionError: # eq_(e.args[0], '1 != 1.0000001000000001 within 7 places') pass
def test__passes(self): assert_almost_equal(1, 1.00000001) assert_almost_equal(1, 1.0000001, 6)