from fnmatch import fnmatch


def class_to_path(class_name, class_to_path_dic):
    """ Return path to test file basing on class name
    Parameters:
    - class_name - test to find,
    - class_to_path_dic - dict with class -> path key/values
    Return:
    - path to test file
    """
    for c, p in class_to_path_dic.items():
        if fnmatch(c, "*" + class_name):
            return p
    return None