class documentation

class AttributeAsLDIFTests(unittest.TestCase): (source)

View In Hierarchy

Converting pairs of attribute keys and values to LDIF. The result is a byte string with key and value separated by a semicolon and a space. In several special cases value is base64 encoded and separated from key by two semicolons and a space.

Method test_byte_string Key and value are byte strings
Method test_contains_nonprintable_characters Value is a string containing nonprintable characters. Returned value is base64 encoded.
Method test_contains_special_characters Value is a string with one of the reserved characters somewhere in its middle. Returned value is base64 encoded.
Method test_endswith_special_character Value is a string ending with one of the reserved characters. Returned value is base64 encoded.
Method test_startswith_special_character Value is a string starting with one of the reserved characters. Returned value is base64 encoded.
Method test_unicode_string Key and value are unicode strings
Method test_wireable_object Value is an object with toWire method returning its bytes representation
def test_byte_string(self): (source)

Key and value are byte strings

def test_contains_nonprintable_characters(self): (source)

Value is a string containing nonprintable characters. Returned value is base64 encoded.

def test_contains_special_characters(self): (source)

Value is a string with one of the reserved characters somewhere in its middle. Returned value is base64 encoded.

def test_endswith_special_character(self): (source)

Value is a string ending with one of the reserved characters. Returned value is base64 encoded.

def test_startswith_special_character(self): (source)

Value is a string starting with one of the reserved characters. Returned value is base64 encoded.

def test_unicode_string(self): (source)

Key and value are unicode strings

def test_wireable_object(self): (source)

Value is an object with toWire method returning its bytes representation