@@ -68,7 +68,6 @@ def test_qr_securejoin(acfactory, protect):
6868
6969 logging .info ("Alice creates a group" )
7070 alice_chat = alice .create_group ("Group" , protect = protect )
71- assert alice_chat .get_basic_snapshot ().is_protected == protect
7271
7372 logging .info ("Bob joins the group" )
7473 qr_code = alice_chat .get_qr_code ()
@@ -89,7 +88,6 @@ def test_qr_securejoin(acfactory, protect):
8988
9089 snapshot = bob .get_message_by_id (bob .wait_for_incoming_msg_event ().msg_id ).get_snapshot ()
9190 assert snapshot .text == "Member Me added by {}." .format (alice .get_config ("addr" ))
92- assert snapshot .chat .get_basic_snapshot ().is_protected == protect
9391
9492 # Test that Bob verified Alice's profile.
9593 bob_contact_alice = bob .create_contact (alice )
@@ -218,7 +216,6 @@ def test_verified_group_member_added_recovery(acfactory) -> None:
218216
219217 logging .info ("ac1 creates verified group" )
220218 chat = ac1 .create_group ("Verified group" , protect = True )
221- assert chat .get_basic_snapshot ().is_protected
222219
223220 logging .info ("ac2 joins verified group" )
224221 qr_code = chat .get_qr_code ()
@@ -313,7 +310,6 @@ def test_qr_join_chat_with_pending_bobstate_issue4894(acfactory):
313310 while 1 :
314311 snapshot = ac2 .get_message_by_id (ac2 .wait_for_incoming_msg_event ().msg_id ).get_snapshot ()
315312 if snapshot .text == "ac1 says hello" :
316- assert snapshot .chat .get_basic_snapshot ().is_protected
317313 break
318314
319315 logging .info ("ac1: let ac2 join again but shutoff ac1 in the middle of securejoin" )
@@ -335,7 +331,6 @@ def test_qr_join_chat_with_pending_bobstate_issue4894(acfactory):
335331 while 1 :
336332 msg = ac2 .get_message_by_id (ac2 .wait_for_incoming_msg_event ().msg_id ).get_snapshot ()
337333 if msg .text == "hello" :
338- assert msg .chat .get_basic_snapshot ().is_protected
339334 break
340335
341336 logging .info ("ac3: create a join-code for group VG and let ac4 join, check that ac2 got it" )
@@ -385,7 +380,6 @@ def test_aeap_flow_verified(acfactory):
385380
386381 logging .info ("ac1: create verified-group QR, ac2 scans and joins" )
387382 chat = ac1 .create_group ("hello" , protect = True )
388- assert chat .get_basic_snapshot ().is_protected
389383 qr_code = chat .get_qr_code ()
390384 logging .info ("ac2: start QR-code based join-group protocol" )
391385 ac2 .secure_join (qr_code )
@@ -439,7 +433,6 @@ def test_gossip_verification(acfactory) -> None:
439433
440434 logging .info ("Bob creates an Autocrypt group" )
441435 bob_group_chat = bob .create_group ("Autocrypt Group" )
442- assert not bob_group_chat .get_basic_snapshot ().is_protected
443436 bob_group_chat .add_contact (bob_contact_alice )
444437 bob_group_chat .add_contact (bob_contact_carol )
445438 bob_group_chat .send_message (text = "Hello Autocrypt group" )
@@ -454,7 +447,6 @@ def test_gossip_verification(acfactory) -> None:
454447
455448 logging .info ("Bob creates a Securejoin group" )
456449 bob_group_chat = bob .create_group ("Securejoin Group" , protect = True )
457- assert bob_group_chat .get_basic_snapshot ().is_protected
458450 bob_group_chat .add_contact (bob_contact_alice )
459451 bob_group_chat .add_contact (bob_contact_carol )
460452 bob_group_chat .send_message (text = "Hello Securejoin group" )
@@ -525,7 +517,6 @@ def test_securejoin_after_contact_resetup(acfactory) -> None:
525517 snapshot = ac2 .get_message_by_id (ac2 .wait_for_incoming_msg_event ().msg_id ).get_snapshot ()
526518 assert snapshot .is_info
527519 ac2_chat = snapshot .chat
528- assert ac2_chat .get_basic_snapshot ().is_protected
529520 assert len (ac2_chat .get_contacts ()) == 3
530521
531522 # ac1 is still "not verified" for ac2 due to inconsistent state.
@@ -537,7 +528,6 @@ def test_withdraw_securejoin_qr(acfactory):
537528
538529 logging .info ("Alice creates a verified group" )
539530 alice_chat = alice .create_group ("Verified group" , protect = True )
540- assert alice_chat .get_basic_snapshot ().is_protected
541531 logging .info ("Bob joins verified group" )
542532
543533 qr_code = alice_chat .get_qr_code ()
@@ -548,7 +538,6 @@ def test_withdraw_securejoin_qr(acfactory):
548538
549539 snapshot = bob .get_message_by_id (bob .wait_for_incoming_msg_event ().msg_id ).get_snapshot ()
550540 assert snapshot .text == "Member Me added by {}." .format (alice .get_config ("addr" ))
551- assert snapshot .chat .get_basic_snapshot ().is_protected
552541 bob_chat .leave ()
553542
554543 snapshot = alice .get_message_by_id (alice .wait_for_msgs_changed_event ().msg_id ).get_snapshot ()
0 commit comments