def test_paris_failure(problem_paris_failure):
    solution = assignment.do(problem_paris_failure)

    assert solution.is_failure()
def test_berlin_success(problem_berlin):
    solution = assignment.do(problem_berlin)

    assert solution.is_success()
    assert solution.de == 3
    assert solution.dm_datacenter == 'Berlin'
def test_paris_success(problem_paris):
    solution = assignment.do(problem_paris)

    assert solution.is_success()
    assert solution.de == 8
    assert solution.dm_datacenter == 'Paris'
def test_stockholm_success(problem_stockholm):
    solution = assignment.do(problem_stockholm)

    assert solution.is_success()
    assert solution.de == 9
    assert solution.dm_datacenter == 'Stockholm'
def test_stockholm_failure(problem_stockholm_failure):
    solution = assignment.do(problem_stockholm_failure)

    assert solution.is_failure()