Known subclasses: twisted.mail.test.test_pop3.IndexErrorCommandTests, twisted.mail.test.test_pop3.ValueErrorCommandTests

Tests for all the commands a POP3 server is allowed to receive.

Method setUp Make a POP3 server protocol instance hooked up to a simple mailbox and a transport that buffers output to a BytesIO.
Method tearDown Disconnect the server protocol so it can clean up anything it might need to clean up.
Method test_LIST Test the two forms of list: with a message index number, which should return a short-form response, and without a message index number, which should return a long-form response, one line per message.
Method test_LISTWithBadArgument Test that non-integers and out-of-bound integers produce appropriate error responses.
Method test_UIDL Test the two forms of the UIDL command. These are just like the two forms of the LIST command.
Method test_UIDLWithBadArgument Test that UIDL with a non-integer or an out-of-bounds integer produces the appropriate error response.
Method test_STAT Test the single form of the STAT command, which returns a short-form response of the number of messages in the mailbox and their total size.
Method test_RETR Test downloading a message.
Method test_RETRWithBadArgument Test that trying to download a message with a bad argument, either not an integer or an out-of-bounds integer, fails with the appropriate error response.
Method test_TOP Test downloading the headers and part of the body of a message.
Method test_TOPWithBadArgument No summary
Method test_LAST Test the exceedingly pointless LAST command, which tells you the highest message index which you have already downloaded.
Method test_RetrieveUpdatesHighest Test that issuing a RETR command updates the LAST response.
Method test_TopUpdatesHighest Test that issuing a TOP command updates the LAST response.
Method test_HighestOnlyProgresses Test that downloading a message with a smaller index than the current LAST response doesn't change the LAST response.
Method test_ResetClearsHighest Test that issuing RSET changes the LAST response to 0.
Method _flush Do some of the things that the reactor would take care of, if the reactor were actually running.
def setUp(self):

Make a POP3 server protocol instance hooked up to a simple mailbox and a transport that buffers output to a BytesIO.

def tearDown(self):

Disconnect the server protocol so it can clean up anything it might need to clean up.

def _flush(self):

Do some of the things that the reactor would take care of, if the reactor were actually running.

def test_LIST(self):

Test the two forms of list: with a message index number, which should return a short-form response, and without a message index number, which should return a long-form response, one line per message.

def test_LISTWithBadArgument(self):

Test that non-integers and out-of-bound integers produce appropriate error responses.

def test_UIDL(self):

Test the two forms of the UIDL command. These are just like the two forms of the LIST command.

def test_UIDLWithBadArgument(self):

Test that UIDL with a non-integer or an out-of-bounds integer produces the appropriate error response.

def test_STAT(self):

Test the single form of the STAT command, which returns a short-form response of the number of messages in the mailbox and their total size.

def test_RETR(self):

Test downloading a message.

def test_RETRWithBadArgument(self):

Test that trying to download a message with a bad argument, either not an integer or an out-of-bounds integer, fails with the appropriate error response.

def test_TOP(self):

Test downloading the headers and part of the body of a message.

def test_TOPWithBadArgument(self):

Test that trying to download a message with a bad argument, either a message number which isn't an integer or is an out-of-bounds integer or a number of lines which isn't an integer or is a negative integer, fails with the appropriate error response.

def test_LAST(self):

Test the exceedingly pointless LAST command, which tells you the highest message index which you have already downloaded.

def test_RetrieveUpdatesHighest(self):

Test that issuing a RETR command updates the LAST response.

def test_TopUpdatesHighest(self):

Test that issuing a TOP command updates the LAST response.

def test_HighestOnlyProgresses(self):

Test that downloading a message with a smaller index than the current LAST response doesn't change the LAST response.

def test_ResetClearsHighest(self):

Test that issuing RSET changes the LAST response to 0.

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