From a850395c3700cfa75e524371ff0b48daefbcaa0d Mon Sep 17 00:00:00 2001 From: Menno Smits Date: Tue, 29 Dec 2009 22:18:56 +0000 Subject: [PATCH] check folders with backslash and dquote in the names in the live test --- livetest.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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): -- 2.43.0