def METHOD_NAME(self, not_qwc_grouping):
    """Test for ValueError raise when diagonalize_qwc_pauli_words is not given a list of
    qubit-wise commuting Pauli words."""
    assert pytest.raises(ValueError, diagonalize_qwc_pauli_words, not_qwc_grouping)