def test_encryptmessage_dict_identity_3(): ek_sub = Enckey.gen() first = EncryptedMessage.enc(EncryptedMessage.enc(Stub(420), ek_sub), EK) second = EncryptedMessage.from_dict(first.to_dict()) assert first == second
def test_encryptmessage_dict_identity_2(): first = EncryptedMessage.enc(SignedMessage.sign(Stub(420), SK), EK) second = EncryptedMessage.from_dict(first.to_dict()) assert first == second