

def test_read_bad_encoding(self):
    '\n        Test that an Exception is raised when the Boolean read operation fails\n        on a bad encoding.\n        '
    encoding = b'B\x00\x00\x06\x00\x00\x00\x08'
    stream = utils.BytearrayStream(encoding)
    boolean = primitives.Boolean()
    self.assertRaises(Exception, boolean.read, encoding)

dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/core/primitives/test_boolean.py TestBoolean.test_read_bad_encoding/VarMisuse@43/114 `stream`->`encoding`