class documentation
class LiteralTestsMixin:
Known subclasses: twisted.mail.test.test_imap.LiteralFileTests
, twisted.mail.test.test_imap.LiteralStringTests
Shared tests for literal classes.
Method | set |
Shared setup. |
Method | test_empty |
The literal returns an empty bytes instance when given an empty bytes instance. |
Method | test_exact |
The literal returns an empty bytes instance when given exactly the data the literal requires. |
Method | test_overlong |
The literal returns any left over bytes when given more data than the literal requires. |
Method | test_partial |
The literal returns None when given less data than the literal requires. |
Instance Variable | deferred |
Undocumented |
Instance Variable | literal |
A callable that returns instances of the literal under test. |