def test_generate_aead_simple_nonce_blocked(self):
        # Enabled flags 00000002 = YSM_AEAD_GENERATE
        # HSM> < keyload - Load key data now using flags 00000002. Press ESC to quit
        # 00000002 - stored ok
        if self.hsm.version.ver < (1,0,4):
            raise unittest.SkipTest("Requires 1.0.4 or greater")

        key_handle = 2
        try:
            res = self.hsm.generate_aead_simple(self.nonce, key_handle, self.secret)
            self.fail("Expected YSM_FUNCTION_DISABLED, got %s" % (res))
        except pyhsm.exception.YHSM_CommandFailed, e:
            self.assertEquals(e.status, pyhsm.defines.YSM_FUNCTION_DISABLED)
Wrapper function to decorate a function
dataset/ETHPy150Open Yubico/python-pyhsm/test/test_aead.py/TestAEAD.test_generate_aead_simple_nonce_blocked--crossover with--dataset/ETHPy150Open kolypto/py-flask-jsontools/flask_jsontools/views.py/_MethodViewInfo.decorator