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.assertEqual(self.srmock.status, falcon.HTTP_201)
location = ('Location', '/v1/queues/gumshoe')
self.assertIn(location, self.srmock.headers)
location = self.srmock.headers_dict['Location']
self.assertEqual(location, '/v1/queues/gumshoe')
# Ensure queue existence
self.simulate_head(path, project_id)