| 106 | | This is a standalone Python script which exercises IMAPClient against |
| 107 | | a live IMAP account. It performs operations and then attempts to |
| 108 | | confirm that these have been successful. |
| 109 | | |
| 110 | | It must be used with an account that has an INBOX folder and write |
| 111 | | access to the account. The folders and contents of the account don't |
| 112 | | matter. |
| | 106 | This script contains a series of functional tests which exercise |
| | 107 | IMAPClient against a live IMAP account. It is useful for ensuring |
| | 108 | compatibility with a given IMAP server implementation. livetest.py |
| | 109 | must be used with an account that has an INBOX folder and write access |
| | 110 | to the account. |
| 131 | | unittest package from the standard library and can be run using |
| 132 | | "python run_tests.py". |
| | 129 | unittest2 package which is also included as the standard unittest |
| | 130 | package in Python 2.7 and 3.2. |
| | 131 | |
| | 132 | Where unittest2 is included in the standard library (eg. Python 2.7 |
| | 133 | and 3.2) you can run all unit tests like this (starting from the root |
| | 134 | directory of the IMAPClient source): |
| | 135 | |
| | 136 | python -m unittest discover |
| | 137 | |
| | 138 | Alternatively, if unittest2 is installed separately use the unit2 |
| | 139 | script (for Unix-like systems) or the unit2.py script: |
| | 140 | |
| | 141 | unit2 discover |
| | 142 | unit2.py discover |