test: folder separator could be dot or slash

Signed-off-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli@gmx.fr>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Pierre-Louis Bonicoli 2015-03-23 12:07:39 +01:00 committed by Nicolas Sebrecht
parent 1cdf34e100
commit afcd640035
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ class OLITestLib():
#folder = folder.replace(br'\"', b'"') # remove quoting #folder = folder.replace(br'\"', b'"') # remove quoting
dirs.append(folder) dirs.append(folder)
# 2) filter out those not starting with INBOX.OLItest and del... # 2) filter out those not starting with INBOX.OLItest and del...
dirs = [d for d in dirs if d.startswith(b'INBOX.OLItest')] dirs = [d for d in dirs if d.startswith(b'INBOX.OLItest') or d.startswith(b'INBOX/OLItest')]
for folder in dirs: for folder in dirs:
res_t, data = imapobj.delete(b'\"'+folder+b'\"') res_t, data = imapobj.delete(b'\"'+folder+b'\"')
assert res_t == 'OK', "Folder deletion of {0} failed with error"\ assert res_t == 'OK', "Folder deletion of {0} failed with error"\

View File

@ -38,5 +38,5 @@ localfolders =
type=IMAP type=IMAP
# Don't hammer the server with too many connection attempts: # Don't hammer the server with too many connection attempts:
maxconnections=1 maxconnections=1
folderfilter= lambda f: f.startswith('INBOX.OLItest') folderfilter= lambda f: f.startswith('INBOX.OLItest') or f.startswith('INBOX/OLItest')
""") """)