def get_smell_value(row, smells_frame, smell, key='test_name', verbose=False):
    """
    Returns the value for the given smell for a particular test
    :param row: the data frame row for the test
    :param smells_frame: the frame with all the smells
    :param smell: the kind of smell
    :param key: the key to look for in the frame
    """
    cut = row[key]
    aux = smells_frame[smells_frame['test-suite'] == cut][smell]
    if len(aux) != 1 and verbose:
        print("\t* {} entries for {}".format(str(len(aux)), cut))
    return aux.iloc[0]