Instead of a function generating the expected_responses, introduce shortcuts (request_input, request_output...) so that the static expected_responses are more readable.