From d079e614ea13e2cc4133694023b4eea1c3016d39 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Thu, 19 Apr 2012 17:15:56 +0200 Subject: [PATCH] tests: extend imapsplit test One more test of the internal imapsplit function. Signed-off-by: Sebastian Spaeth --- test/tests/test_00_imaputil.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/tests/test_00_imaputil.py b/test/tests/test_00_imaputil.py index c97d5c9..d1972da 100644 --- a/test/tests/test_00_imaputil.py +++ b/test/tests/test_00_imaputil.py @@ -59,6 +59,9 @@ class TestInternalFunctions(unittest.TestCase): res = imaputil.imapsplit(b'(\\HasNoChildren) "." "INBOX.Sent"') self.assertEqual(res, [b'(\\HasNoChildren)', b'"."', b'"INBOX.Sent"']) + res = imaputil.imapsplit(b'"mo\\" o" sdfsdf') + self.assertEqual(res, [b'"mo\\" o"', b'sdfsdf']) + def test_02_flagsplit(self): """Test imaputil.flagsplit()""" res = imaputil.flagsplit(b'(\\Draft \\Deleted)')