test: Bring test_forward_encrypted_to_unencrypted into line with current API

Currently `Chat.send_msg()` modifies the source message and returns another message object
equivalent to the source one. That's how it works in the core and thus in Python bindings too.
This commit is contained in:
iequidoo
2024-01-16 14:19:20 -03:00
committed by missytake
parent 36cab40ac1
commit c16c5e0802

View File

@@ -511,9 +511,11 @@ def test_forward_encrypted_to_unencrypted(acfactory, lp):
lp.sec("ac2: forward message to ac3 unencrypted ")
unencrypted_chat = ac2.create_chat(ac3)
msg_id = msg.id
msg2 = unencrypted_chat.send_msg(msg)
assert not msg2.is_encrypted()
assert msg.is_encrypted()
assert msg2 == msg
assert msg.id != msg_id
assert not msg.is_encrypted()
def test_forward_own_message(acfactory, lp):