async def METHOD_NAME(self):
    network = NetworkFactory(ip="192.168.0.0/24", owner_ip="192.168.0.2")
    with pytest.raises(NetworkError) as e:
        await network.add_node("1", "192.168.0.2")
    assert "has already been assigned in this network" in str(e.value)