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.client and then deliver a tagged SELECT or EXAMINE completion line to finish the SELECT or EXAMINE response.

Inherited from PreauthIMAP4ClientMixin:

Instance Variable transport A StringTransport to which client is connected.
Instance Variable client An IMAP4Client which is connected to transport.
Method setUp Create an IMAP4Client connected to a fake transport and in the authenticated state.
def _examineOrSelect(self):

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.

def _response(self, *lines):

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.

def test_exists(self):

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.

def test_nonIntegerExists(self):

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.

def test_recent(self):

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.

def test_nonIntegerRecent(self):

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.

def test_unseen(self):

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.

def test_nonIntegerUnseen(self):

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.

def test_uidvalidity(self):

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.

def test_nonIntegerUIDVALIDITY(self):

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.

def test_uidnext(self):

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.

def test_nonIntegerUIDNEXT(self):

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.

def test_flags(self):

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.

def test_permanentflags(self):

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.

def test_unrecognizedOk(self):

If the server response to a SELECT or EXAMINE command includes an OK with unrecognized response code text, parsing does not fail.

def test_bareOk(self):

If the server response to a SELECT or EXAMINE command includes an OK with no response code text, parsing does not fail.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.