class documentation
class AttributeAsLDIFTests(unittest.TestCase): (source)
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 |
Key and value are byte strings |
Method | test |
Value is a string containing nonprintable characters. Returned value is base64 encoded. |
Method | test |
Value is a string with one of the reserved characters somewhere in its middle. Returned value is base64 encoded. |
Method | test |
Value is a string ending with one of the reserved characters. Returned value is base64 encoded. |
Method | test |
Value is a string starting with one of the reserved characters. Returned value is base64 encoded. |
Method | test |
Key and value are unicode strings |
Method | test |
Value is an object with toWire method returning its bytes representation |
Value is a string with one of the reserved characters somewhere in its middle. Returned value is base64 encoded.