Пример #1
0
 def test_format_response_no_request_id(self):
     req = FakeRequest()
     response = Service.format_response({'foo': 'bar'}, req)
     assert req.headers == {'content-type': ['application/json']}
     assert json.loads(response) == {
         'request_id': None,
         'foo': 'bar',
     }