def test_write_bad_value(self):
        stream = utils.BytearrayStream()
        boolean = primitives.Boolean()
        boolean.value = 'invalid'
        self.assertRaises(Exception, boolean.write, stream)
Test that an Exception is raised when the Boolean write operation fails
dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/core/primitives/test_boolean.py/TestBoolean.test_write_bad_value