twisted.mail.test.test_imap.SelectionTestsMixin(PreauthIMAP4ClientMixin) class documentationtwisted.mail.test.test_imap
(View In Hierarchy)
Known subclasses: twisted.mail.test.test_imap.IMAP4ClientExamineTests, twisted.mail.test.test_imap.IMAP4ClientSelectTests
Mixin for test cases which defines tests which apply to both EXAMINE and SELECT support.
| Method | test_exists | No summary | 
| Method | test_nonIntegerExists | No summary | 
| Method | test_recent | No summary | 
| Method | test_nonIntegerRecent | No summary | 
| Method | test_unseen | No summary | 
| Method | test_nonIntegerUnseen | No summary | 
| Method | test_uidvalidity | No summary | 
| Method | test_nonIntegerUIDVALIDITY | No summary | 
| Method | test_uidnext | No summary | 
| Method | test_nonIntegerUIDNEXT | No summary | 
| Method | test_flags | No summary | 
| Method | test_permanentflags | No summary | 
| Method | test_unrecognizedOk | If the server response to a SELECT or EXAMINE command includes an OK with unrecognized response code text, parsing does not fail. | 
| Method | test_bareOk | If the server response to a SELECT or EXAMINE command includes an OK with no response code text, parsing does not fail. | 
| Method | _examineOrSelect | No summary | 
| Method | _response | Deliver the given (unterminated) response lines to self.clientand then deliver a tagged SELECT or EXAMINE 
completion line to finish the SELECT or EXAMINE response. | 
Inherited from PreauthIMAP4ClientMixin:
| Instance Variable | transport | A StringTransportto whichclientis connected. | 
| Instance Variable | client | An IMAP4Clientwhich is connected totransport. | 
| Method | setUp | Create an IMAP4Client connected to a fake transport and in the authenticated state. | 
Issue either an EXAMINE or SELECT command (depending on 
self.method), assert that the correct bytes are written to the
transport, and return the Deferred 
returned by whichever method was called.
Deliver the given (unterminated) response lines to 
self.client and then deliver a tagged SELECT or EXAMINE 
completion line to finish the SELECT or EXAMINE response.
If the server response to a SELECT or EXAMINE command 
includes an EXISTS response, the Deferred 
return by IMAP4Client.select
or IMAP4Client.examine
fires with a dict including the value associated with the 
'EXISTS' key.
If the server returns a non-integer EXISTS value in its response to a 
SELECT or EXAMINE command, the Deferred 
returned by IMAP4Client.select
or IMAP4Client.examine
fails with IllegalServerResponse.
If the server response to a SELECT or EXAMINE command 
includes an RECENT response, the Deferred 
return by IMAP4Client.select
or IMAP4Client.examine
fires with a dict including the value associated with the 
'RECENT' key.
If the server returns a non-integer RECENT value in its response to a 
SELECT or EXAMINE command, the Deferred 
returned by IMAP4Client.select
or IMAP4Client.examine
fails with IllegalServerResponse.
If the server response to a SELECT or EXAMINE command 
includes an UNSEEN response, the Deferred 
returned by IMAP4Client.select
or IMAP4Client.examine
fires with a dict including the value associated with the 
'UNSEEN' key.
If the server returns a non-integer UNSEEN value in its response to a 
SELECT or EXAMINE command, the Deferred 
returned by IMAP4Client.select
or IMAP4Client.examine
fails with IllegalServerResponse.
If the server response to a SELECT or EXAMINE command 
includes an UIDVALIDITY response, the Deferred 
returned by IMAP4Client.select
or IMAP4Client.examine
fires with a dict including the value associated with the 
'UIDVALIDITY' key.
If the server returns a non-integer UIDVALIDITY value in its response to
a SELECT or EXAMINE command, the Deferred 
returned by IMAP4Client.select
or IMAP4Client.examine
fails with IllegalServerResponse.
If the server response to a SELECT or EXAMINE command 
includes an UIDNEXT response, the Deferred 
returned by IMAP4Client.select
or IMAP4Client.examine
fires with a dict including the value associated with the 
'UIDNEXT' key.
If the server returns a non-integer UIDNEXT value in its response to a 
SELECT or EXAMINE command, the Deferred 
returned by IMAP4Client.select
or IMAP4Client.examine
fails with IllegalServerResponse.
If the server response to a SELECT or EXAMINE command 
includes an FLAGS response, the Deferred 
returned by IMAP4Client.select
or IMAP4Client.examine
fires with a dict including the value associated with the 
'FLAGS' key.
If the server response to a SELECT or EXAMINE command 
includes an FLAGS response, the Deferred 
returned by IMAP4Client.select
or IMAP4Client.examine
fires with a dict including the value associated with the 
'FLAGS' key.