def generateSample(test_name, base_url,
                   example_xrds=example_xrds,
                   filename=default_test_file):
    try:
        template = getData(filename, test_name)
    except __HOLE__ as why:
        import errno
        if int(why) == errno.ENOENT:
            raise KeyError(filename)
        else:
            raise

    return fillTemplate(test_name, template, base_url, example_xrds)
dataset/ETHPy150Open necaris/python3-openid/openid/test/discoverdata.py/generateSample