class CommandMixin: (source)
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 | set |
Make a POP3 server protocol instance hooked up to a simple mailbox and a transport that buffers output to a BytesIO. |
Method | tear |
Disconnect the server protocol so it can clean up anything it might need to clean up. |
Method | test_ |
Test that downloading a message with a smaller index than the current LAST response doesn't change the LAST response. |
Method | test_ |
Test the exceedingly pointless LAST command, which tells you the highest message index which you have already downloaded. |
Method | test_ |
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_ |
Test that non-integers and out-of-bound integers produce appropriate error responses. |
Method | test_ |
Test that issuing RSET changes the LAST response to 0. |
Method | test_ |
Test downloading a message. |
Method | test_ |
Test that issuing a RETR command updates the LAST response. |
Method | test_ |
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_ |
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_ |
Test downloading the headers and part of the body of a message. |
Method | test_ |
Test that issuing a TOP command updates the LAST response. |
Method | test_ |
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. |
Method | test_ |
Test the two forms of the UIDL command. These are just like the two forms of the LIST command. |
Method | test_ |
Test that UIDL with a non-integer or an out-of-bounds integer produces the appropriate error response. |
Class Variable | extra |
Undocumented |
Instance Variable | pop3 |
Undocumented |
Instance Variable | pop3 |
Undocumented |
Method | _flush |
Do some of the things that the reactor would take care of, if the reactor were actually running. |
Make a POP3 server protocol instance hooked up to a simple mailbox and a transport that buffers output to a BytesIO.
Test that downloading a message with a smaller index than the current LAST response doesn't change the LAST response.
Test the exceedingly pointless LAST command, which tells you the highest message index which you have already downloaded.
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.
twisted.mail.test.test_pop3.IndexErrorCommandTests
Test that non-integers and out-of-bound integers produce appropriate error responses.
twisted.mail.test.test_pop3.IndexErrorCommandTests
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.
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.
twisted.mail.test.test_pop3.IndexErrorCommandTests
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.
twisted.mail.test.test_pop3.IndexErrorCommandTests
Test that UIDL with a non-integer or an out-of-bounds integer produces the appropriate error response.
twisted.mail.test.test_pop3.IndexErrorAsyncDeferredCommandTests
, twisted.mail.test.test_pop3.ValueErrorAsyncDeferredCommandTests
Do some of the things that the reactor would take care of, if the reactor were actually running.