@@ -463,18 +463,21 @@ def test_receive_help_strip_mention_of_bot(self):
463
463
self .assert_replied (OtherFake , alice , '?' , "<p>Hi! I'm a friendly bot" )
464
464
465
465
def test_receive_did_atproto (self ):
466
- self .make_user (id = 'bsky.brid.gy' , cls = Web )
467
- alice = self .make_user (id = 'efake:alice' , cls = ExplicitFake ,
468
- enabled_protocols = ['atproto' ], obj_as1 = {'x' : 'y' },
469
- copies = [Target (protocol = 'atproto' , uri = 'did:abc:123' )])
470
- obj = Object (our_as1 = {
471
- ** DM_BASE ,
472
- 'to' : ['bsky.brid.gy' ],
473
- 'content' : 'did' ,
474
- })
475
- self .assertEqual (('OK' , 200 ), receive (from_user = alice , obj = obj ))
476
- self .assert_replied (ATProto , alice , '?' ,
477
- 'Your DID is <code>did:abc:123</code>' )
466
+ for content in 'did' , 'did foo' :
467
+ ExplicitFake .sent = []
468
+ with self .subTest (content = content ):
469
+ self .make_user (id = 'bsky.brid.gy' , cls = Web )
470
+ alice = self .make_user (id = 'efake:alice' , cls = ExplicitFake ,
471
+ enabled_protocols = ['atproto' ], obj_as1 = {'x' : 'y' },
472
+ copies = [Target (protocol = 'atproto' , uri = 'did:abc:123' )])
473
+ obj = Object (our_as1 = {
474
+ ** DM_BASE ,
475
+ 'to' : ['bsky.brid.gy' ],
476
+ 'content' : 'did' ,
477
+ })
478
+ self .assertEqual (('OK' , 200 ), receive (from_user = alice , obj = obj ))
479
+ self .assert_replied (ATProto , alice , '?' ,
480
+ 'Your DID is <code>did:abc:123</code>' )
478
481
479
482
def test_receive_block (self ):
480
483
alice , bob = self .make_alice_bob ()
0 commit comments