def read_discard_list(discard_path):

    logger = logging.getLogger('petr_log')
    logger.info("Reading " + PETRglobals.DiscardFileName)
    open_FIN(discard_path, "discard")

    line = read_FIN_line()
    while len(line) > 0:  # loop through the file
        if '#' in line:
            line = line[:line.find('#')]
        targ = line.strip()
        if targ.startswith('+'):
            targ = targ[1:].upper() + ' +'
        else:
            targ = targ.upper() + ' $'

        targ = targ.split()
        prev = targ[0]       # Add words to search tree
        targ = targ[1:]
        list = PETRglobals.DiscardList.setdefault(prev, {})
        while targ != []:
            list = list.setdefault(targ[0], {})
            targ = targ[1:]

        line = read_FIN_line()
    close_FIN()
Fixtures can load initial data into models defined in packages
dataset/ETHPy150Open openeventdata/petrarch/petrarch/PETRreader.py/read_discard_list--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/modeltests/fixtures_model_package/tests.py/FixtureTestCase.test_initial_data