def test_modify(self): v = Vault(self.c) v.create(self.s.get(), reinitialize=True) v.open(self.s.get()) v.data['key'] = 'value' v.save(self.s.get()) v.close() v.open(self.s.get()) self.assertEqual(v.data, {'key': 'value'})
def test_closed(self): v = Vault(self.c) v.create(self.s.get(), reinitialize=True) self.assertEqual(v.save(self.s.secret), VaultStatus.VAULT_CLOSED)