From 3d14d4c22bbb99241293c3e6e2af8f80e25fc13d Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 12 Oct 2021 13:45:23 +0300 Subject: [PATCH] Port tests to Python 3 --- test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index b04bce4..f9af470 100644 --- a/test.py +++ b/test.py @@ -214,7 +214,7 @@ def test_initKeystoneFromJson(self): keystone_required_keys = ["server", "tenant", "username", "password"] config_keystone_keys = client.keystone.keys() - self.assertItemsEqual(config_keystone_keys, keystone_required_keys) + self.assertCountEqual(config_keystone_keys, keystone_required_keys) self.assertEqual(client.project_id, test_keystone_config["project_id"]) remove_test_config("test_keystone_config.json") @@ -233,7 +233,7 @@ def test_initKeystoneFromConstructor(self): keystone_required_keys = ["server", "tenant", "username", "password"] config_keystone_keys = client.keystone.keys() - self.assertItemsEqual(config_keystone_keys, keystone_required_keys) + self.assertCountEqual(config_keystone_keys, keystone_required_keys) def test_ironTokenProvider(self): client = iron_core.IronTokenProvider("iron-token")