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.
literalFactory =
A callable that returns instances of the literal under test.
def setUp(self):

Shared setup.

def test_partialWrite(self):

The literal returns None when given less data than the literal requires.

def test_exactWrite(self):

The literal returns an empty bytes instance when given exactly the data the literal requires.

def test_overlongWrite(self):

The literal returns any left over bytes when given more data than the literal requires.

def test_emptyLiteral(self):

The literal returns an empty bytes instance when given an empty bytes instance.

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