Is it possible to make function with the name return that will simulate normal python return.
Why: So that in unittesting we can break from the method that have infinity loop:
while True:
...
time.sleep(x)
I want to do something like this...
def return(y):
...
self.mock_module['time'].sleep.side_effect = [return(z)]