def get_config_file(env, fname):
    base, ext = os.path.splitext(fname)
    distribution_fname = "{0}-{1}{2}".format(base, env.get("distribution", "notspecified"), ext)
    Config = collections.namedtuple("Config", "base dist")
    out = Config(base=_find_fname(env, fname), dist=_find_fname(env, distribution_fname))
    env.logger.debug("Using config file {0}".format(out.base))
    return out
Test for rsync files from src to dst
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/flavor/config.py/get_config_file--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/rsync_test.py/RsyncTestCase.test_rsync