Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
def test_is_qualified_id():
    assert tools.is_qualified_id("foo@bar") is True
    assert tools.is_qualified_id("foo") is False
Пример #4
0
def test_is_qualified_id():
    assert tools.is_qualified_id("foo@bar") is True
    assert tools.is_qualified_id("foo") is False