def test_incorrect_solution_counts(
    task_metadata,
    additional_metadata_annealing,
    values,
    solutions,
    solution_counts,
    variable_count,
):
    AnnealingTaskResult(
        values=values,
        solutions=solutions,
        solutionCounts=solution_counts,
        variableCount=variable_count,
        taskMetadata=task_metadata,
        additionalMetadata=additional_metadata_annealing,
    )
def test_incorrect_header(
    braket_schema_header,
    task_metadata,
    additional_metadata_annealing,
    values,
    solutions,
    solution_counts,
    variable_count,
):
    AnnealingTaskResult(
        braketSchemaHeader=braket_schema_header,
        values=values,
        solutions=solutions,
        solutionCounts=solution_counts,
        variableCount=variable_count,
        taskMetadata=task_metadata,
        additionalMetadata=additional_metadata_annealing,
    )
def test_correct_result(
    task_metadata,
    additional_metadata_annealing,
    values,
    solutions,
    solution_counts,
    variable_count,
):
    result = AnnealingTaskResult(
        values=values,
        solutions=solutions,
        solutionCounts=solution_counts,
        variableCount=variable_count,
        taskMetadata=task_metadata,
        additionalMetadata=additional_metadata_annealing,
    )
    assert result.values == values
    assert result.solutions == solutions
    assert result.solutionCounts == solution_counts
    assert result.variableCount == variable_count
    assert result.taskMetadata == task_metadata
    assert result.additionalMetadata == additional_metadata_annealing
    assert AnnealingTaskResult.parse_raw(result.json()) == result
    assert result == AnnealingTaskResult.parse_raw_schema(result.json())
def test_missing_properties():
    AnnealingTaskResult()