Fix IMAP select tests
In IMAP read/write mode, SELECT is used instead of EXAMINE darcs-hash:20080307175146-86b55-e06b42f5a4c52e0f348baf31ebe354fe7f6ae79f.gz
This commit is contained in:
@@ -409,7 +409,7 @@ class IMAPAccount_TestCase(InheritableAccount_TestCase):
|
||||
" OK [READ-WRITE] SELECT completed\n",
|
||||
lambda data: "* SEARCH 9 10 \n" + \
|
||||
data.split()[0] + " OK SEARCH completed\n"],
|
||||
["^[^ ]* EXAMINE INBOX",
|
||||
["^[^ ]* SELECT INBOX",
|
||||
"^[^ ]* SEARCH RECENT"],
|
||||
lambda self: \
|
||||
self.assertEquals(self.imap_account.get_new_mail_list(),
|
||||
@@ -427,7 +427,7 @@ class IMAPAccount_TestCase(InheritableAccount_TestCase):
|
||||
" OK [READ-WRITE] SELECT completed\n",
|
||||
lambda data: "* SEARCH 9 10 \n" + \
|
||||
data.split()[0] + " OK SEARCH completed\n"],
|
||||
["^[^ ]* EXAMINE \"?INBOX\.dir1\.subdir2\"?",
|
||||
["^[^ ]* SELECT \"?INBOX\.dir1\.subdir2\"?",
|
||||
"^[^ ]* SEARCH RECENT"],
|
||||
lambda self: \
|
||||
self.assertEquals(self.imap_account.get_new_mail_list(),
|
||||
@@ -445,7 +445,7 @@ class IMAPAccount_TestCase(InheritableAccount_TestCase):
|
||||
" OK [READ-WRITE] SELECT completed\n",
|
||||
lambda data: "* SEARCH 9 10 \n" + \
|
||||
data.split()[0] + " OK SEARCH completed\n"],
|
||||
["^[^ ]* EXAMINE \"?INBOX/dir1/subdir2\"?",
|
||||
["^[^ ]* SELECT \"?INBOX/dir1/subdir2\"?",
|
||||
"^[^ ]* SEARCH RECENT"],
|
||||
lambda self: \
|
||||
self.assertEquals(self.imap_account.get_new_mail_list(),
|
||||
|
||||
Reference in New Issue
Block a user