diff options
| author | Barry Warsaw | 2015-12-12 20:26:09 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2015-12-12 20:26:09 -0500 |
| commit | 4eaed33f2e7ddab482dbca7d8e945455b73dfb46 (patch) | |
| tree | 45cdc34c1e6179f9a95b88ccc18c7cd7b9c2f50a /src/mailman/rest/tests/test_moderation.py | |
| parent | c972f9d5504469890ba72e81cd662d18f1ee4c13 (diff) | |
| download | mailman-4eaed33f2e7ddab482dbca7d8e945455b73dfb46.tar.gz mailman-4eaed33f2e7ddab482dbca7d8e945455b73dfb46.tar.zst mailman-4eaed33f2e7ddab482dbca7d8e945455b73dfb46.zip | |
_resource_as_dict() may not return None.
Add some assertions to prove this is always the case.
Diffstat (limited to '')
| -rw-r--r-- | src/mailman/rest/tests/test_moderation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/rest/tests/test_moderation.py b/src/mailman/rest/tests/test_moderation.py index e1d1f9ab3..63284c808 100644 --- a/src/mailman/rest/tests/test_moderation.py +++ b/src/mailman/rest/tests/test_moderation.py @@ -69,7 +69,7 @@ Something else. self.assertEqual(cm.exception.code, 400) def test_missing_held_message_request_id(self): - # Bad request when the request_id is not in the database. + # Not found when the request_id is not in the database. with self.assertRaises(HTTPError) as cm: call_api('http://localhost:9001/3.0/lists/ant@example.com/held/99') self.assertEqual(cm.exception.code, 404) |
