def register_response(self, method, url, body='<STR_LIT:{}>', match_querystring=False,<EOL>status=<NUM_LIT:200>, adding_headers=None, stream=False,<EOL>content_type='<STR_LIT>'):
<EOL>if not is_py2:<EOL><INDENT>body = bytes(body, '<STR_LIT>')<EOL><DEDENT>responses.add(method, url, body, match_querystring,<EOL>status, adding_headers, stream, content_type)<EOL>
Wrapper function for responses for simpler unit tests