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