def dummyRequest(method, path, headers, body=''):
 parsed = urlparse(path)
 if parsed.query:
  new_path = ((parsed.path + '?') + parsed.query)
 else:
  new_path = parsed.path
 return _DummyRequest(next(_dummyRequestCounter), method, new_path, headers, body)

def dummyRequest ( method , path , headers , body = '' ) : parsed = urlparse ( path ) if parsed . query : new_path = ( ( parsed . path + '?' ) + parsed . query ) else : new_path = parsed . path return _DummyRequest ( next ( _dummyRequestCounter ) , method , new_path , headers , body )
construct a new dummy l{irequest} provider .