How do I make sure that a certain function raises an exception on certain inputs using mox
?
I could do it with try catch but it doesn't seem like too mox
xy
Lets say the function is the following:
def merge_paths(a, b):
if a == "":
raise RuntimeError("Wrong prefix")
return a+b