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

Ignore Accept header.

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