def _request(self, typ, id=<NUM_LIT:0>, method="<STR_LIT:GET>", data=None, params=None, url=None):
print("<STR_LIT>", url, typ, id)<EOL>if not url:<EOL><INDENT>url = "<STR_LIT>" % typ<EOL>if id:<EOL><INDENT>url = "<STR_LIT>" % (url, id)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>url = url.replace("<STR_LIT>","<STR_LIT>")<EOL><DEDENT>self._response = DummyResponse(**(self.testData.get(method).get(url)))<EOL>return self._response<EOL>
Instead of requesting to a HTTP connection we retrieve pre-crafted
responses from testData