From: Menno Smits Date: Tue, 29 Dec 2009 22:18:56 +0000 (+0000) Subject: check folders with backslash and dquote in the names in the live test X-Git-Tag: 0.7~65 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a850395c3700cfa75e524371ff0b48daefbcaa0d;p=imapclient.git check folders with backslash and dquote in the names in the live test --- diff --git a/livetest.py b/livetest.py index 6a57242..0d0275f 100755 --- a/livetest.py +++ b/livetest.py @@ -21,11 +21,18 @@ def test_capabilities(client): assert not client.has_capability('WONT EXIST') def test_list_folders(client): + clear_folders(client) + some_folders = ['simple', r'foo\bar', r'test"folder"'] + for name in some_folders: + client.create_folder(name) + folders = client.list_folders() assert len(folders) > 0, 'No folders visible on server' assert 'INBOX' in [f.upper() for f in folders], 'INBOX not returned' + + for name in some_folders: + assert name in folders #TODO: test wildcards - #TODO: test other folders... def test_select_and_close(client):