root/imapclient/test/testable_imapclient.py
| Revision 304:239f24fbd17c, 392 bytes (checked in by Menno Smits <menno@…>, 2 weeks ago) |
|---|
| Line | |
|---|---|
| 1 | # Copyright (c) 2012, Menno Smits |
| 2 | # Released subject to the New BSD License |
| 3 | # Please see http://en.wikipedia.org/wiki/BSD_licenses |
| 4 | |
| 5 | from imapclient.imapclient import IMAPClient |
| 6 | from imapclient.test.mock import Mock |
| 7 | |
| 8 | class TestableIMAPClient(IMAPClient): |
| 9 | |
| 10 | def __init__(self): |
| 11 | super(TestableIMAPClient, self).__init__('somehost') |
| 12 | |
| 13 | def _create_IMAP4(self): |
| 14 | return Mock() |
Note: See TracBrowser
for help on using the browser.
