Created
August 16, 2011 18:19
-
-
Save alecmunro/1149767 to your computer and use it in GitHub Desktop.
Verbose dependency specification for mocking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
def __init__(self, time_mod=time): | |
self.time = time_mod | |
def some_method(self): | |
self.time.sleep(10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment