def setUpClass(cls): # delete temp new folders for test_mailbox_name in test_mailbox_name_set: mailbox = get_test_mailbox(test_mailbox_name) for del_folder in (mailbox.folder_test_new, mailbox.folder_test_new1): if mailbox.folder.exists(del_folder): mailbox.folder.delete(del_folder)
def setUpClass(cls): # delete temp new folders for test_mailbox_name in TEST_MAILBOX_NAME_SET: mailbox = get_test_mailbox(test_mailbox_name) for del_folder in (mailbox.folder_test_new, mailbox.folder_test_new1): if mailbox.folder.exists(del_folder): mailbox.folder.delete(del_folder)
def setUpClass(cls): # clear temp folders for test_mailbox_name in TEST_MAILBOX_NAME_SET: mailbox = get_test_mailbox(test_mailbox_name) mailbox.folder.set(mailbox.folder_test_temp1) mailbox.delete(mailbox.uids()) mailbox.folder.set(mailbox.folder_test_temp2) mailbox.delete(mailbox.uids())
def setUpClass(cls): # clear temp folders for test_mailbox_name in TEST_MAILBOX_NAME_SET: mailbox = get_test_mailbox(test_mailbox_name) mailbox.folder.set(mailbox.folder_test_temp1) for_del_1 = [msg.uid for msg in mailbox.fetch()] if for_del_1: mailbox.delete([msg.uid for msg in mailbox.fetch()]) mailbox.folder.set(mailbox.folder_test_temp2) for_del_2 = [msg.uid for msg in mailbox.fetch()] if for_del_2: mailbox.delete(for_del_2)