def write_results(test_class_name, results):
    prev_results = read_previous_results()
    if test_class_name in prev_results:
        prev_results[test_class_name].update(results)
    else:
        prev_results[test_class_name] = results
    with open(settings.LOAD_TESTS_PATHS['load_previous_tests_results'],
              'w') as results_file:
            results_file.write(
                jsonutils.dumps(prev_results, sort_keys=True, indent=4))
Read the metadata values from a file object.
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/performance/base.py/write_results--crossover with--dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/distlib/metadata.py/LegacyMetadata.read_file