def mock_open_raw(page,<EOL>parms=None,<EOL>payload=None,<EOL>HTTPrequest=None,<EOL>payload_type='<STR_LIT:application/json>'):
if parms is not None:<EOL><INDENT>seperator = '<STR_LIT:?>'<EOL>for key, value in parms.items():<EOL><INDENT>if key in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>continue<EOL><DEDENT>page = '<STR_LIT>'.format(page, seperator, key, value)<EOL>seperator = '<STR_LIT:&>'<EOL><DEDENT><DEDENT>return StringIO(HTTP_MOCK_DATA[page])<EOL>
Pretends to be the URL open method on the Redmine WS class.