def test_using_disabled_keyhandle(self):
        if not self.hsm.version.have_keydisable():
            return None
        # HSM> < keyload - Load key data now using flags ffffffff. Press ESC to quit
        # 00002001 - stored ok
        # HSM> < keydis 2001
        try:
            res = self.hsm.aes_ecb_encrypt(0x2001, "klartext")
            self.fail("Expected YSM_FUNCTION_DISABLED, got %s" % (res))
        except pyhsm.exception.YHSM_CommandFailed, e:
            self.assertEquals(e.status, pyhsm.defines.YSM_FUNCTION_DISABLED)
Parse a string and create a metric
dataset/ETHPy150Open Yubico/python-pyhsm/test/test_misc.py/TestUtil.test_using_disabled_keyhandle--crossover with--dataset/ETHPy150Open python-diamond/Diamond/src/diamond/metric.py/Metric.parse