diff options
| author | Barry Warsaw | 2017-02-06 15:30:01 +0000 |
|---|---|---|
| committer | Barry Warsaw | 2017-02-06 15:30:01 +0000 |
| commit | 03e04a93efa312bfec58dd267959d401e9bcf22b (patch) | |
| tree | db590d461c1e9c956c1f562f826d8ba0ddf405b3 /src/mailman/rest/tests/test_queues.py | |
| parent | a75a718fa9073a51df8ce4deafe8a4851818b0a7 (diff) | |
| parent | 26e9f870a3d6aea1c7ff4d576d9b38e3b4d5bbbc (diff) | |
| download | mailman-03e04a93efa312bfec58dd267959d401e9bcf22b.tar.gz mailman-03e04a93efa312bfec58dd267959d401e9bcf22b.tar.zst mailman-03e04a93efa312bfec58dd267959d401e9bcf22b.zip | |
Diffstat (limited to 'src/mailman/rest/tests/test_queues.py')
| -rw-r--r-- | src/mailman/rest/tests/test_queues.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/rest/tests/test_queues.py b/src/mailman/rest/tests/test_queues.py index 7a5a7e134..b6668bdff 100644 --- a/src/mailman/rest/tests/test_queues.py +++ b/src/mailman/rest/tests/test_queues.py @@ -65,8 +65,8 @@ class TestQueues(unittest.TestCase): content, response = call_api('http://localhost:9001/3.0/queues/bad', { 'list_id': 'test.example.com', 'text': TEXT}) - self.assertEqual(response.status, 201) - location = response['location'] + self.assertEqual(response.status_code, 201) + location = response.headers['location'] filebase = location.split('/')[-1] # The message is in the 'bad' queue. content, response = call_api('http://localhost:9001/3.0/queues/bad') @@ -94,9 +94,9 @@ class TestQueues(unittest.TestCase): content, response = call_api('http://localhost:9001/3.0/queues/bad', { 'list_id': 'test.example.com', 'text': TEXT}) - location = response['location'] + location = response.headers['location'] self.assertEqual(len(config.switchboards['bad'].files), 1) # Delete the file through REST. content, response = call_api(location, method='DELETE') - self.assertEqual(response.status, 204) + self.assertEqual(response.status_code, 204) self.assertEqual(len(config.switchboards['bad'].files), 0) |
