def setUp(self): value = u'value' c = crypto.Cipher(secret_key.get_key_dummy()) e = c.encrypt(value) self.item = info.InfoItem(u'name', e)
def test_enc_setter(self): c = crypto.Cipher(secret_key.get_key_dummy()) e = c.encrypt(u'dummy') i = info.InfoItem(u'name', e) i.value = self.value self.assertEqual(self.value, i.value)