mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
add get_setupcodebegin to python bindings, test the function
This commit is contained in:
@@ -537,6 +537,7 @@ class TestOnlineAccount:
|
||||
ev = ac2._evlogger.get_matching("DC_EVENT_INCOMING_MSG|DC_EVENT_MSGS_CHANGED")
|
||||
msg = ac2.get_message_by_id(ev[2])
|
||||
assert msg.is_setup_message()
|
||||
assert msg.get_setupcodebegin() == setup_code[:2]
|
||||
# first try a bad setup code
|
||||
with pytest.raises(ValueError):
|
||||
msg.continue_key_transfer(str(reversed(setup_code)))
|
||||
|
||||
Reference in New Issue
Block a user