Merge "Use assertAlmostEqual instead of failUnlessAlmostEqual in unit tests"
This commit is contained in:
commit
f573b7e3b6
@ -443,7 +443,7 @@ class LimiterTest(BaseLimitTestSuite):
|
||||
|
||||
expected = 60.0 / 7.0
|
||||
results = self._check_sum(1, "POST", "/anything")
|
||||
self.failUnlessAlmostEqual(expected, results, 8)
|
||||
self.assertAlmostEqual(expected, results, 8)
|
||||
|
||||
def test_delay_GET(self):
|
||||
"""Ensure the 11th GET will result in NO delay."""
|
||||
|
@ -448,7 +448,7 @@ class LimiterTest(BaseLimitTestSuite):
|
||||
|
||||
expected = 60.0 / 7.0
|
||||
results = self._check_sum(1, "POST", "/anything")
|
||||
self.failUnlessAlmostEqual(expected, results, 8)
|
||||
self.assertAlmostEqual(expected, results, 8)
|
||||
|
||||
def test_delay_GET(self):
|
||||
"""Ensure the 11th GET will result in NO delay."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user