summaryrefslogtreecommitdiff
path: root/trove/tests/unittests/api/common
diff options
context:
space:
mode:
authorChang Bo Guo <guochbo@cn.ibm.com>2013-10-08 03:45:21 -0700
committerChang Bo Guo <guochbo@cn.ibm.com>2013-10-14 19:34:25 -0700
commit66b313c635af4d225d9532976ce31857d200b790 (patch)
treea2eed6962d2a313a52dd8e2b168d9af37d8b9675 /trove/tests/unittests/api/common
parent20f9beacdb7c6aa2ae1ad611229d0839ad9afe81 (diff)
downloadtrove-66b313c635af4d225d9532976ce31857d200b790.tar.gz
Replace deprecated method aliases in tests
Some of the TestCase methods have been deprecated since python 2.7. We need use correct names. http://docs.python.org/2/library/unittest.html#deprecated-aliases * replace 'assertEquals' with 'assertEqual' * replace 'failUnlessAlmostEqual' with 'assertAlmostEqual' Change-Id: I90da87723e3e36767946d276301b75af801b952d
Diffstat (limited to 'trove/tests/unittests/api/common')
-rw-r--r--trove/tests/unittests/api/common/test_limits.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/trove/tests/unittests/api/common/test_limits.py b/trove/tests/unittests/api/common/test_limits.py
index e61247fa..a53dc9f8 100644
--- a/trove/tests/unittests/api/common/test_limits.py
+++ b/trove/tests/unittests/api/common/test_limits.py
@@ -419,7 +419,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.