Exemplo n.º 1
0
 def test_create_delete_key(self):
     """ Check that a key can be created and then destroyed. """
     dac = Context()
     # Create and push a key/value.
     key, value = dac._generate_key(), 'test'
     dac._push({key: value}, targets=dac.targets)
     # Delete the key.
     dac.delete_key(key)
     dac.close()
Exemplo n.º 2
0
 def test_create_delete_key(self):
     """ Check that a key can be created and then destroyed. """
     dac = Context()
     # Create and push a key/value.
     key, value = dac._generate_key(), 'test'
     dac._push({key: value}, targets=dac.targets)
     # Delete the key.
     dac.delete_key(key)
     dac.close()