aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/rest/tests/test_lists.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman_pgp/rest/tests/test_lists.py')
-rw-r--r--src/mailman_pgp/rest/tests/test_lists.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mailman_pgp/rest/tests/test_lists.py b/src/mailman_pgp/rest/tests/test_lists.py
index 900e8b9..7b21023 100644
--- a/src/mailman_pgp/rest/tests/test_lists.py
+++ b/src/mailman_pgp/rest/tests/test_lists.py
@@ -24,7 +24,6 @@ from mailman.interfaces.action import Action
from mailman.testing.helpers import call_api
from pgpy import PGPKey
-from mailman_pgp.config import config
from mailman_pgp.database import mm_transaction, transaction
from mailman_pgp.model.list import PGPMailingList
from mailman_pgp.testing.layers import PGPRESTLayer
@@ -114,12 +113,10 @@ class TestListConfig(TestCase):
for key in cfg:
attr = getattr(self.pgp_list, key)
if isinstance(attr, Action):
- self.assertEqual(attr.name, cfg[key])
+ attr = attr.name
elif key == 'key_signing_allowed':
- attr = [enum.name for enum in attr]
- self.assertEqual(attr, sorted(cfg[key]))
- else:
- self.assertEqual(attr, cfg[key])
+ attr = sorted(enum.name for enum in attr)
+ self.assertEqual(attr, cfg[key])
def test_put_wrong_value(self):
cfg = dict(unsigned_msg_action='not-an-action',