]> khamidou — GitHub mirrors - imapclient.git/commitdiff
check folders with backslash and dquote in the names in the live test
authorMenno Smits <menno@freshfoo.com>
Tue, 29 Dec 2009 22:18:56 +0000 (22:18 +0000)
committerMenno Smits <menno@freshfoo.com>
Tue, 29 Dec 2009 22:18:56 +0000 (22:18 +0000)
livetest.py

index 6a57242a81f09aacbae6af53ecc7350ca451f9ed..0d0275fc19d7a4fee7b7e5d703e59532fa3a86ab 100755 (executable)
@@ -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):