From 1127187efe600ff8a74dcd6a73b3e2a39b9adf46 Mon Sep 17 00:00:00 2001 From: Edouard Tisserant Date: Sun, 20 Nov 2016 02:10:17 +0100 Subject: [PATCH] ENGINE-140 fixed details in test for exclution of identity from sync --- test/mp_sync_test.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/mp_sync_test.py b/test/mp_sync_test.py index 49911cf..3be8444 100644 --- a/test/mp_sync_test.py +++ b/test/mp_sync_test.py @@ -129,7 +129,6 @@ def nokey_in_a_group_of_3_members(): ("GroupA2", [decrypt_message, [enc_msg]], expect(pEp.PEP_rating.PEP_rating_reliable)), ] : yield action - def not_for_sync_in_a_group_of_3_members(pre_actions=[]): yield from group_of_3_members() enc_msg = yield from new_address_peer_and_mail(pEp.identity_flags.PEP_idf_not_for_sync) @@ -138,15 +137,13 @@ def not_for_sync_in_a_group_of_3_members(pre_actions=[]): (cycle_until_no_change, ["GroupA1", "GroupA2", "GroupA3"], expect(1)), (flush_all_mails,), ("GroupA1", [create_account, ["second@group.a", "GroupA Second", pEp.identity_flags.PEP_idf_not_for_sync]]), - (flush_all_mails, expect(0)), + (flush_all_mails, expect(1)), ("GroupA2", [create_account, ["second@group.a", "GroupA Second", pEp.identity_flags.PEP_idf_not_for_sync]]), - (flush_all_mails, expect(0)), + (flush_all_mails, expect(1)), ("GroupA2", [decrypt_message, [enc_msg]], expect(pEp.PEP_rating.PEP_rating_have_no_key)), ("GroupA1", [decrypt_message, [enc_msg]], expect(pEp.PEP_rating.PEP_rating_have_no_key)), ] : yield action - - if __name__ == "__main__": run_scenario(group_on_keygen) run_scenario(group_on_cannotdecrypt)