summaryrefslogtreecommitdiff
path: root/tests/utils_tests
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2016-06-14 16:03:12 +0300
committerTim Graham <timograham@gmail.com>2016-06-14 09:03:12 -0400
commitfa654da6130df80239e181c432595442e688ee8b (patch)
treedfd49d910bc2f41b1c33a86384dd07a34efbf5f4 /tests/utils_tests
parent7003174fec188bd5a21e3d62bd5e13e80f6f329c (diff)
Removed usage of a few deprecated unittest assertions.
Diffstat (limited to 'tests/utils_tests')
-rw-r--r--tests/utils_tests/test_functional.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/utils_tests/test_functional.py b/tests/utils_tests/test_functional.py
index 2cf399f892..f62784f1b0 100644
--- a/tests/utils_tests/test_functional.py
+++ b/tests/utils_tests/test_functional.py
@@ -134,14 +134,14 @@ class FunctionalTestCase(unittest.TestCase):
def test_lazy_repr_text(self):
original_object = 'Lazy translation text'
lazy_obj = lazy(lambda: original_object, six.text_type)
- self.assertEquals(repr(original_object), repr(lazy_obj()))
+ self.assertEqual(repr(original_object), repr(lazy_obj()))
def test_lazy_repr_int(self):
original_object = 15
lazy_obj = lazy(lambda: original_object, int)
- self.assertEquals(repr(original_object), repr(lazy_obj()))
+ self.assertEqual(repr(original_object), repr(lazy_obj()))
def test_lazy_repr_bytes(self):
original_object = b'J\xc3\xbcst a str\xc3\xadng'
lazy_obj = lazy(lambda: original_object, bytes)
- self.assertEquals(repr(original_object), repr(lazy_obj()))
+ self.assertEqual(repr(original_object), repr(lazy_obj()))