

def test_read_true(self):
    '\n        Test that a Boolean object representing the value True can be read\n        from a byte stream.\n        '
    encoding = b'B\x00\x00\x06\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x01'
    stream = utils.BytearrayStream(encoding)
    boolean = primitives.Boolean()
    boolean.read(stream)
    self.assertTrue(encoding.value)

dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/core/primitives/test_boolean.py TestBoolean.test_read_true/VarMisuse@44/138 `boolean`->`encoding`