Commit d79b5e16 authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Add a check for the return code

parent bcfb5154
......@@ -160,6 +160,7 @@ class APITestCase(TestCase):
self.assertEqual(response.status_code, 202)
response = self.client.get('/api/v1.1/servers/detail?changes-since=%s' % since)
self.assertEqual(response.status_code, 200)
vms_from_api_after = json.loads(response.content)['servers']['values']
#make sure the newly created server is included on the updated list
self.assertEqual(len(vms_from_api_after), 1)
......
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