Ejemplo n.º 1
0
def test_setupCallback(project, local_server):
    docker_vm = DockerVM(Docker(), local_server, project)

    # Callback
    params = {
        "name": "DOCKER1",
        "vm_id": "aec7a00c-e71c-45a6-8c04-29e40732883c",
    }
    docker_vm._setupCallback(params)

    assert docker_vm.vm_id() == "aec7a00c-e71c-45a6-8c04-29e40732883c"
    assert docker_vm.name() == "DOCKER1"