Commit 3d953e61 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis Committed by Christos Stavrakakis
Browse files

astakos: Fix quota API test

Sort list before comparing, since ordering in the response data is
not specified. Triggered when run with postgres.
parent a825ab3d
......@@ -196,7 +196,8 @@ class QuotaAPITest(TestCase):
body = json.loads(r.content)
self.assertEqual(body['serial'], serial)
assertIn('issue_time', body)
self.assertEqual(body['provisions'], commission_request['provisions'])
provisions = sorted(body['provisions'], key=lambda p: p['resource'])
self.assertEqual(provisions, commission_request['provisions'])
self.assertEqual(body['name'], commission_request['name'])
r = client.get(u('service_quotas?user=' + user.uuid), **s1_headers)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment