Last active
August 29, 2015 13:56
-
-
Save terrycojones/9111253 to your computer and use it in GitHub Desktop.
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 FakeCursor(object): | |
def close(self): | |
pass | |
class FakeDbConnection(object): | |
def __init__(self, result): | |
self._result = result | |
def cursor(self): | |
return FakeCursor() | |
def execute(self, query): | |
return self._result | |
def close(self): | |
pass | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment