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)
def test_follow_is_converted_to_activitypubfollow(self, private_key): entity = Follow() assert isinstance(get_outbound_entity(entity, private_key), ActivitypubFollow)