twisted.mail.test.test_imap.LiteralTestsMixin(object)
class documentationtwisted.mail.test.test_imap
(View In Hierarchy)
Known subclasses: twisted.mail.test.test_imap.LiteralFileTests, twisted.mail.test.test_imap.LiteralStringTests
Shared tests for literal classes.
Instance Variable | literalFactory | A callable that returns instances of the literal under test. |
Method | setUp | Shared setup. |
Method | test_partialWrite | The literal returns None
when given less data than the literal requires. |
Method | test_exactWrite | The literal returns an empty bytes
instance when given exactly the data the literal requires. |
Method | test_overlongWrite | The literal returns any left over bytes
when given more data than the literal requires. |
Method | test_emptyLiteral | The literal returns an empty bytes
instance when given an empty bytes
instance. |
The literal returns None
when given less data than the literal requires.
The literal returns an empty bytes
instance when given exactly the data the literal requires.
The literal returns any left over bytes
when given more data than the literal requires.