class SelectionTestsMixin(PreauthIMAP4ClientMixin): (source)
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_bare |
If the server response to a SELECT or EXAMINE command includes an OK with no response code text, parsing does not fail. |
Method | test |
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 ... |
Method | test |
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 ... |
Method | test_non |
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 . |
Method | test_non |
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 . |
Method | test_non |
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 . |
Method | test_non |
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 ... |
Method | test_non |
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 . |
Method | test |
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 ... |
Method | test |
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 ... |
Method | test |
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 ... |
Method | test |
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 ... |
Method | test_unrecognized |
If the server response to a SELECT or EXAMINE command includes an OK with unrecognized response code text, parsing does not fail. |
Method | test |
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 ... |
Method | _examine |
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. |
Method | _response |
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. |
Inherited from PreauthIMAP4ClientMixin
:
Method | set |
Create an IMAP4Client connected to a fake transport and in the authenticated state. |
Instance Variable | client |
An IMAP4Client which is connected to transport. |
Instance Variable | transport |
A StringTransport to which client is connected. |
If the server response to a SELECT or EXAMINE command includes an OK with no response code text, parsing does not fail.
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 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 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 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 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 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 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 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 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 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 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 response to a SELECT or EXAMINE command includes an OK with unrecognized response code text, parsing does not fail.
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.
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.