def METHOD_NAME():
    from generic import NexusError
    tpath = testing.setup_unit_test_output_directory('pwscf_simulation','test_get_result',**pseudo_inputs)
    sim = get_pwscf_sim('scf')
    try:
        sim.get_result('unknown',None)
        raise FailedTest
    except NexusError:
        None
    except FailedTest:
        failed()
    except Exception as e:
        failed(str(e))
    #end try
    result  = sim.get_result('charge_density',None)
    result2 = sim.get_result('restart',None)
    assert(object_eq(result,result2))
    result_ref = dict(
        locdir        = 'scf',
        outdir        = 'scf/pwscf_output',
        location      = 'scf/pwscf_output/pwscf.save/charge-density.dat',
        spin_location = 'scf/pwscf_output/pwscf.save/spin-polarization.dat',
        )
    assert(set(result.keys())==set(result_ref.keys()))
    for k,path in result.items():
        path = path.replace(tpath,'').lstrip('/')
        assert(path==result_ref[k])
    #end for
    result = sim.get_result('orbitals',None)
    result_ref = dict(
        location = 'scf/pwscf_output/pwscf.wfc1',
        )
    assert(set(result.keys())==set(result_ref.keys()))
    for k,path in result.items():
        path = path.replace(tpath,'').lstrip('/')
        assert(path==result_ref[k])
    #end for
    clear_all_sims()
    restore_nexus()