

def test_resources_can_read_request_stream_during_tests(self):
    'Make sure we can perform a simple request during testing.\n\n        Originally, testing would fail after performing a request because no\n        size was specified when calling `wsgiref.validate.InputWrapper.read()`\n        via `req.stream.read()`'
    result = self.simulate_post(path=self.type_route, body='hello')
    self.assertEqual(result.status, falcon.HTTP_200)
    self.assertEqual(result.json, {
        'data': 'hello',
    })

dataset/ETHPy150Open falconry/falcon/tests/test_wsgiref_inputwrapper_with_size.py TestWsgiRefInputWrapper.test_resources_can_read_request_stream_during_tests/original