Merge "test: Use srmock header_dict in preparation for Falcon 0.1.8"

This commit is contained in:
Jenkins 2014-01-16 18:36:26 +00:00 committed by Gerrit Code Review
commit 1765a8c3b8

View File

@ -63,8 +63,8 @@ class QueueLifecycleBaseTest(base.TestBase):
self.simulate_put(path, project_id) self.simulate_put(path, project_id)
self.assertEqual(self.srmock.status, falcon.HTTP_201) self.assertEqual(self.srmock.status, falcon.HTTP_201)
location = ('Location', '/v1/queues/gumshoe') location = self.srmock.headers_dict['Location']
self.assertIn(location, self.srmock.headers) self.assertEqual(location, '/v1/queues/gumshoe')
# Ensure queue existence # Ensure queue existence
self.simulate_head(path, project_id) self.simulate_head(path, project_id)