def remove_actor(self, actor_id): """ Remove an actor from the hive """ if is_qualified_id(actor_id): actor_id = split_id(actor_id)[0] self._actor_registry.pop(actor_id)
def test_is_qualified_id(): assert tools.is_qualified_id("foo@bar") is True assert tools.is_qualified_id("foo") is False