class documentation

Shared tests for literal classes.

Method setUp Shared setup.
Method test_emptyLiteral The literal returns an empty bytes instance when given an empty bytes instance.
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_partialWrite The literal returns None when given less data than the literal requires.
Instance Variable deferred Undocumented
Instance Variable literalFactory A callable that returns instances of the literal under test.
def setUp(self):

Shared setup.

def test_emptyLiteral(self):

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

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_partialWrite(self):

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

deferred =

Undocumented

literalFactory =

A callable that returns instances of the literal under test.