Exemplo n.º 1
0
 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
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
 def test__passes(self):
     assert_almost_equal(1, 1.00000001)
     assert_almost_equal(1, 1.0000001, 6)
Exemplo n.º 4
0
 def test__passes(self):
     assert_almost_equal(1, 1.00000001)
     assert_almost_equal(1, 1.0000001, 6)