async def METHOD_NAME(self):
    network = NetworkFactory(ip="192.168.0.0/30")
    await network.add_node("1")
    with pytest.raises(NetworkError) as e:
        await network.add_node("2")
    assert "No more addresses available" in str(e.value)