1
0
mirror of https://github.com/OfflineIMAP/offlineimap.git synced 2024-07-06 09:00:53 +02:00
offlineimap/test/tests
Sebastian Spaeth 2800a71a28 tests: Add "create email test"
This is the first test that actually creates a (local) email and
syncs. We check the result of the sync operation, to see if the
server has actually been assigning a proper UID to the email and
bail out if not.

This test therefore excercises our ability to properly detect the
new UID of an APPENDED email. Obviously we still need some
IMAP<->IMAP tests too, but since this is the same codepath being
used for APPENDs in that case, it could also help to detect
instabilities there.

In order to get this test in, the OLITestLib got a few new helper
functions:
- delete_maildir
- create_mail
- get_maildir_uids

The test passes here. I invoke it via:

python -m unittest test.tests.test_01_basic.TestBasicFunctions.test_04_createmail

or run python setup.py test, to run the whole suite.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-02-24 09:39:39 +01:00
..
__init__.py Add initial skeleton for a testing framework 2012-01-19 10:32:05 +01:00
test_01_basic.py tests: Add "create email test" 2012-02-24 09:39:39 +01:00
test_02_MappedIMAP.py tests: Add MappedIMAP test skeleton 2012-02-17 10:26:43 +01:00