class documentation

class LengthConsumerTestCase(unittest.TestCase): (source)

View In Hierarchy

Tests for the _LengthConsumer, an L{IConsumer} which is used to compute the length of a produced content.

Method test_scalarsUpdateCounter When an int is written, _LengthConsumer updates its internal counter.
Method test_stringUpdatesCounter Use the written string length to update the internal counter
def test_scalarsUpdateCounter(self): (source)

When an int is written, _LengthConsumer updates its internal counter.

def test_stringUpdatesCounter(self): (source)

Use the written string length to update the internal counter