def raise_exc(*args, **kwargs): e = base.NodeError(MockRequest(), URLError("Its gone!")) e.code = 404 e.status = '404 Not Found' raise e
def raise_exc(*args, **kwargs): e = base.NodeError(MockRequest(), URLError("somthing bad")) e.code = 400 e.status = '400 something bad' raise e
def raise_exc(*args, **kwargs): e = base.NodeError(MockRequest(), URLError("fake 404")) e.code = 404 raise e
def raise_exc(*args, **kwargs): raise base.NodeError(MockRequest(), URLError("something bad"))
def raise_exc(self, node, method, path, **kwargs): node_request_path.append(path) raise base.NodeError(MockRequest(), URLError("something bad"))