From 4eaed33f2e7ddab482dbca7d8e945455b73dfb46 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sat, 12 Dec 2015 20:26:09 -0500 Subject: _resource_as_dict() may not return None. Add some assertions to prove this is always the case. --- src/mailman/rest/tests/test_moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mailman/rest/tests') 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) -- cgit v1.2.3-70-g09d2