class documentation

class TestBERSequence(unittest.TestCase): (source)

View In Hierarchy

Unit test for BERSequence.

Method testDecdeInvalidInput It raises BERExceptionInsufficientData when trying to decode from data which is not valid.
Method testDecodeValidInput It can be decoded from its bytes serialization.
Method testStringRepresentatinLargerInteger It can represent a sequence of a single integer which has a multi bites value.
Method testStringRepresentatinMultipleIntegers It can represent a sequence of multiple integer.
Method testStringRepresentatinSmallInteger It can represent a sequence of a single integer which has a single byte value.
Method testStringRepresentationEmpty It can return the byte string representation for empty sequence which is just the zero/null byte.
def testDecdeInvalidInput(self): (source)

It raises BERExceptionInsufficientData when trying to decode from data which is not valid.

def testDecodeValidInput(self): (source)

It can be decoded from its bytes serialization.

def testStringRepresentatinLargerInteger(self): (source)

It can represent a sequence of a single integer which has a multi bites value.

def testStringRepresentatinMultipleIntegers(self): (source)

It can represent a sequence of multiple integer.

def testStringRepresentatinSmallInteger(self): (source)

It can represent a sequence of a single integer which has a single byte value.

def testStringRepresentationEmpty(self): (source)

It can return the byte string representation for empty sequence which is just the zero/null byte.