diff options
author | Colin Watson <cjwatson@debian.org> | 2023-12-17 15:38:50 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2023-12-17 15:38:50 +0000 |
commit | 56d126d1bea64081fe40a2a3f8fbb1c82267c0c6 (patch) | |
tree | d79abcee39136d6a7583d22f47b8eac88277ca7c /macaroonbakery/tests/test_macaroon.py | |
parent | e988151f336cac8970d6904a76bf53bccb237920 (diff) |
New upstream version 1.3.4
Diffstat (limited to 'macaroonbakery/tests/test_macaroon.py')
-rw-r--r-- | macaroonbakery/tests/test_macaroon.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macaroonbakery/tests/test_macaroon.py b/macaroonbakery/tests/test_macaroon.py index bcbbf80..ab0cbe0 100644 --- a/macaroonbakery/tests/test_macaroon.py +++ b/macaroonbakery/tests/test_macaroon.py @@ -19,17 +19,17 @@ class TestMacaroon(TestCase): 'here', bakery.LATEST_VERSION) self.assertIsNotNone(m) - self.assertEquals(m._macaroon.identifier, b'some id') - self.assertEquals(m._macaroon.location, 'here') - self.assertEquals(m.version, bakery.LATEST_VERSION) + self.assertEqual(m._macaroon.identifier, b'some id') + self.assertEqual(m._macaroon.location, 'here') + self.assertEqual(m.version, bakery.LATEST_VERSION) def test_add_first_party_caveat(self): m = bakery.Macaroon('rootkey', 'some id', 'here', bakery.LATEST_VERSION) m.add_caveat(checkers.Caveat('test_condition')) caveats = m.first_party_caveats() - self.assertEquals(len(caveats), 1) - self.assertEquals(caveats[0].caveat_id, b'test_condition') + self.assertEqual(len(caveats), 1) + self.assertEqual(caveats[0].caveat_id, b'test_condition') def test_add_third_party_caveat(self): locator = bakery.ThirdPartyStore() |