Drastically reducing the conditionals does not break any test.
Probably introducing the better was_in_spec test in
get_original_method is enough and can be used here safely.
Comparing this to Python's mock library from the standard lib suggest
this to be true as well.
Drastically reducing the conditionals does not break any test. Probably introducing the better
was_in_spec
test inget_original_method
is enough and can be used here safely.Comparing this to Python's
mock
library from the standard lib suggest this to be true as well.