summaryrefslogtreecommitdiff
path: root/macaroonbakery/tests/test_namespace.py
diff options
context:
space:
mode:
Diffstat (limited to 'macaroonbakery/tests/test_namespace.py')
-rw-r--r--macaroonbakery/tests/test_namespace.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/macaroonbakery/tests/test_namespace.py b/macaroonbakery/tests/test_namespace.py
index 8a821e5..11d8795 100644
--- a/macaroonbakery/tests/test_namespace.py
+++ b/macaroonbakery/tests/test_namespace.py
@@ -24,12 +24,12 @@ class TestNamespace(TestCase):
for test in tests:
ns = checkers.Namespace(test[1])
data = ns.serialize_text()
- self.assertEquals(data, test[2])
- self.assertEquals(str(ns), test[2].decode('utf-8'))
+ self.assertEqual(data, test[2])
+ self.assertEqual(str(ns), test[2].decode('utf-8'))
# Check that it can be deserialize to the same thing:
ns1 = checkers.deserialize_namespace(data)
- self.assertEquals(ns1, ns)
+ self.assertEqual(ns1, ns)
# TODO(rogpeppe) add resolve tests
@@ -37,16 +37,16 @@ class TestNamespace(TestCase):
ns = checkers.Namespace(None)
ns.register('testns', 't')
prefix = ns.resolve('testns')
- self.assertEquals(prefix, 't')
+ self.assertEqual(prefix, 't')
ns.register('other', 'o')
prefix = ns.resolve('other')
- self.assertEquals(prefix, 'o')
+ self.assertEqual(prefix, 'o')
# If we re-register the same URL, it does nothing.
ns.register('other', 'p')
prefix = ns.resolve('other')
- self.assertEquals(prefix, 'o')
+ self.assertEqual(prefix, 'o')
def test_register_bad_uri(self):
ns = checkers.Namespace(None)