def test_06(self): """ See if a key is available """ kernel_keyring.add_key(TEST_KEY, TEST_VALUE) assert kernel_keyring.has_key(TEST_KEY) # noqa kernel_keyring.del_key(TEST_KEY) assert not kernel_keyring.has_key(TEST_KEY) # noqa
def test_06(self): """ See if a key is available """ kernel_keyring.add_key(TEST_KEY, TEST_VALUE) result = kernel_keyring.has_key(TEST_KEY) assert (result == True) kernel_keyring.del_key(TEST_KEY) result = kernel_keyring.has_key(TEST_KEY) assert (result == False)
def test_06(self): """ See if a key is available """ kernel_keyring.add_key(TEST_KEY, TEST_VALUE) result = kernel_keyring.has_key(TEST_KEY) assert(result == True) kernel_keyring.del_key(TEST_KEY) result = kernel_keyring.has_key(TEST_KEY) assert(result == False)