class documentation

Mixin for test cases which defines tests which apply to both EXAMINE and SELECT support.

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 test_exists 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_flags 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_nonIntegerExists 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_nonIntegerRecent 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_nonIntegerUIDNEXT 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_nonIntegerUIDVALIDITY 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_nonIntegerUnseen 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_permanentflags 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_recent 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_uidnext 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_uidvalidity 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_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_unseen 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 _examineOrSelect 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 setUp 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.
def test_bareOk(self): (source)

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

def test_exists(self): (source)

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_flags(self): (source)

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_nonIntegerExists(self): (source)

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_nonIntegerRecent(self): (source)

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_nonIntegerUIDNEXT(self): (source)

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_nonIntegerUIDVALIDITY(self): (source)

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_nonIntegerUnseen(self): (source)

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_permanentflags(self): (source)

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_recent(self): (source)

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_uidnext(self): (source)

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_uidvalidity(self): (source)

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_unrecognizedOk(self): (source)

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

def test_unseen(self): (source)

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 _examineOrSelect(self): (source)

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): (source)

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.