Improve test suite and add test

1) Add helper functions to create and count maildirs and mails.

2) Add a second test that creates 2 maildirs, one of the including a
quotation sign " in its folder name and sync.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2012-01-20 15:55:44 +01:00
parent 58450fb22e
commit 314a4e3b2c
5 changed files with 46 additions and 17 deletions

View File

@ -25,7 +25,7 @@ import os
from distutils.core import setup, Command
import offlineimap
import logging
from test.OLItest import OLITextTestRunner, TestLoader, OLITestLib
from test.OLItest import TextTestRunner, TestLoader, OLITestLib
class TestCommand(Command):
"""runs the OLI testsuite"""
@ -44,7 +44,7 @@ class TestCommand(Command):
OLITestLib(cred_file='./test/credentials.conf', cmd='./offlineimap.py')
suite = TestLoader().discover('./test/tests')
#TODO: failfast does not seem to exist in python2.6?
OLITextTestRunner(verbosity=2,failfast=True).run(suite)
TextTestRunner(verbosity=2,failfast=True).run(suite)
setup(name = "offlineimap",