def METHOD_NAME(self, observables, diagonalized_groupings_sol):
    """Generic test cases without coefficients."""
    diagonalized_groupings = optimize_measurements(
        observables, grouping="qwc", colouring_method="rlf"
    )[1]
    # assert the correct number of partitions:
    n_partitions = len(diagonalized_groupings_sol)
    assert len(diagonalized_groupings) == n_partitions
    # assert each partition is of the correct length:
    assert all(
        len(diagonalized_groupings[i]) == len(diagonalized_groupings_sol[i])
        for i in range(n_partitions)
    )
    # assert each partition contains the same Pauli terms as the solution partition:
    for i, partition in enumerate(diagonalized_groupings):
        for j, pauli in enumerate(partition):
            assert are_identical_pauli_words(pauli, diagonalized_groupings_sol[i][j])