Commit 0ba4b36a authored by Łukasz Nowak's avatar Łukasz Nowak

Ignore Accept header.

parent 3d179731
......@@ -436,8 +436,7 @@ class TestInstanceRequest(VifibSlaposRestAPIV1Mixin):
self.assertResponseCode(400)
self.assertResponseJson()
self.assertEqual({
'Content-Type': "Header with value 'application/json' is required.",
'Accept': "Header with value 'application/json' is required."},
'Content-Type': "Header with value '^application/json.*' is required."},
self.json_response)
self.assertPersonRequestSimulatorEmpty()
......@@ -447,14 +446,13 @@ class TestInstanceRequest(VifibSlaposRestAPIV1Mixin):
body=json.dumps(kwargs),
headers={'REMOTE_USER': self.customer_reference,
'Content-Type': 'please/complain',
'Accept': 'please/complain'})
'Accept': 'be/silent'})
self.prepareResponse()
self.assertBasicResponse()
self.assertResponseCode(400)
self.assertResponseJson()
self.assertEqual({
'Content-Type': "Header with value 'application/json' is required.",
'Accept': "Header with value 'application/json' is required."},
'Content-Type': "Header with value '^application/json.*' is required."},
self.json_response)
self.assertPersonRequestSimulatorEmpty()
# and with correct ones are set by default
......@@ -1580,4 +1578,4 @@ class TestComputerPUT(VifibSlaposRestAPIV1MixinBase):
self.assertResponseJson()
self.assertEqual({'software_0': ['Missing key "log".']},
self.json_response)
self.assertComputerPUTSimulatorEmpty()
\ No newline at end of file
self.assertComputerPUTSimulatorEmpty()
73
\ No newline at end of file
74
\ No newline at end of file
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