diff options
author | Colin Watson <cjwatson@debian.org> | 2023-12-17 15:38:51 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2023-12-17 15:40:50 +0000 |
commit | cf23c2ece2086abefbd03d3213fa04cb0129f175 (patch) | |
tree | 7970987d6315a6ca1a2b98a56dfada6ae87906ed /macaroonbakery/tests/test_namespace.py | |
parent | 50ebbeefde26108bd0f77dea65c867f8374fab36 (diff) | |
parent | 56d126d1bea64081fe40a2a3f8fbb1c82267c0c6 (diff) |
Update upstream source from tag 'upstream/1.3.4'
Update to upstream version '1.3.4'
with Debian dir 777524adc014a778bea83b7686468832666f6c9c
Diffstat (limited to 'macaroonbakery/tests/test_namespace.py')
-rw-r--r-- | macaroonbakery/tests/test_namespace.py | 12 |
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) |