Created
October 5, 2016 19:50
-
-
Save skatenerd/05e8a428203b78015abf30eb364e2220 to your computer and use it in GitHub Desktop.
mock filewriter
This file contains hidden or 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
class MockWriter(object): | |
def write_file(self, path, contents): | |
print "ooh look at me, i'm a file writer" | |
print "i perform slow operations and sometimes i fail for no good reason" | |
print "you only use me when you don't have a Real Database to talk to" | |
print "I'm so cool! not!" | |
return 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
s/MockWriter/MockingWriter/
:)