Merge "Correct catalog response checker for result ordering"

This commit is contained in:
Jenkins 2015-02-10 06:02:49 +00:00 committed by Gerrit Code Review
commit b5f5bbe2f0
1 changed files with 1 additions and 1 deletions

View File

@ -753,7 +753,7 @@ class RestfulTestCase(tests.SQLDriverOverrides, rest.RestfulTestCase,
# catalog validation
def assertValidCatalogResponse(self, resp, *args, **kwargs):
self.assertEqual(['catalog', 'links'], resp.json.keys())
self.assertEqual(set(['catalog', 'links']), set(resp.json.keys()))
self.assertValidCatalog(resp.json['catalog'])
self.assertIn('links', resp.json)
self.assertIsInstance(resp.json['links'], dict)