Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Jun 6, 2024
1 parent 69baddc commit 1cab3ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/REST.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def test_CreateInfrastructure(self, get_infrastructure, CreateInfrastructure):

res = self.client.post('/infrastructures', headers=headers, data=BytesIO(b"radl"))
self.assertEqual(res.text, "http://localhost/infrastructures/1")
self.assertEqual(res.headers['InfID'],"1")
self.assertEqual(res.headers['InfID'], "1")

res = self.client.post('/infrastructures?async=yes', headers=headers, data=BytesIO(b"radl"))
self.assertEqual(res.text, "http://localhost/infrastructures/1")
Expand Down Expand Up @@ -341,7 +341,7 @@ def test_AddResource(self, get_infrastructure, AddResource):

res = self.client.post('/infrastructures/1?context=yes', headers=headers, data=BytesIO(b"radl"))
self.assertEqual(res.text, "http://localhost/infrastructures/1/vms/1")
self.assertEqual(res.headers['InfID'],"1")
self.assertEqual(res.headers['InfID'], "1")

headers["Content-Type"] = "application/json"
res = self.client.post('/infrastructures/1', headers=headers,
Expand Down Expand Up @@ -459,7 +459,7 @@ def test_Reconfigure(self, Reconfigure):

res = self.client.put('/infrastructures/1/reconfigure?vmlist=1,2', headers=headers, data=BytesIO(b"radl"))
self.assertEqual(res.text, "")
self.assertEqual(res.headers['InfID'],"1")
self.assertEqual(res.headers['InfID'], "1")

headers["Content-Type"] = "application/json"
res = self.client.put('/infrastructures/1/reconfigure?vmlist=1,2',
Expand Down

0 comments on commit 1cab3ab

Please sign in to comment.