Exemple #1
0
 def test_instance_creation(self):
     entity = Follow(
         handle="*****@*****.**", target_handle="*****@*****.**", following=True
     )
     entity.validate()
 def test_follow_is_converted_to_diasporacontact(self, private_key):
     entity = Follow()
     assert isinstance(get_outbound_entity(entity, private_key),
                       DiasporaContact)
Exemple #3
0
 def test_follow_is_converted_to_activitypubfollow(self, private_key):
     entity = Follow()
     assert isinstance(get_outbound_entity(entity, private_key), ActivitypubFollow)