def test_read_bad_value(self):
        encoding = (
            b'\x42\x00\x00\x06\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00'
            b'\x02')
        stream = utils.BytearrayStream(encoding)
        boolean = primitives.Boolean()
        self.assertRaises(ValueError, boolean.read, stream)
Test that a ValueError is raised when the Boolean read operations
dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/core/primitives/test_boolean.py/TestBoolean.test_read_bad_value