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

@@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
__all__ = ['OLITestLib', 'OLITextTestRunner','TestLoader']
__all__ = ['OLITestLib', 'TextTestRunner','TestLoader']
__productname__ = 'OfflineIMAP Test suite'
__version__ = '0'
@@ -29,6 +29,6 @@ banner = """%(__productname__)s %(__version__)s
%(__license__)s""" % locals()
import unittest
from unittest import TestLoader
from unittest import TestLoader, TextTestRunner
from globals import default_conf
from TestRunner import OLITestLib, OLITextTestRunner
from TestRunner import OLITestLib