Created
June 16, 2016 10:00
-
-
Save devos50/816ce425b85aa60ad0c698994fc8f216 to your computer and use it in GitHub Desktop.
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
class MyClass(object): | |
@staticmethod | |
def do_work(): | |
print "doing stuff" | |
MyClass.do_work() | |
# Mock class | |
def other_work(): | |
print "mocked" | |
MyClass.do_work = other_work | |
MyClass.do_work() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment