def test_generate_aead_random_nonce_blocked(self):
        # Enabled flags 00000008 = YSM_RANDOM_AEAD_GENERATE
        # 00000004 - stored ok
        if self.hsm.version.ver < (1,0,4):
            raise unittest.SkipTest("Requires 1.0.4 or greater")

        key_handle = 4
        try:
            res = self.hsm.generate_aead_random(self.nonce, key_handle, 22)
            self.fail("Expected YSM_FUNCTION_DISABLED, got %s" % (res))
        except pyhsm.exception.YHSM_CommandFailed, e:
            self.assertEquals(e.status, pyhsm.defines.YSM_FUNCTION_DISABLED)
Retrieve Post object based on given Post id
dataset/ETHPy150Open Yubico/python-pyhsm/test/test_aead.py/TestAEAD.test_generate_aead_random_nonce_blocked--crossover with--dataset/ETHPy150Open jkossen/imposter/admin.py/get_post