def METHOD_NAME(self, fname):
    smodel = nrml.to_python(fname, conv)
    fd, name = tempfile.mkstemp(suffix='.xml')
    with os.fdopen(fd, 'wb'):
        written = write_source_model(name, smodel)
    with open(name + '.toml', 'w') as f:
        tomldump(smodel, f)
    if len(written) == 2:  # .xml + .hdf5
        assert os.path.exists(written[1])
        os.remove(written[1])
    elif open(name).read() != open(fname).read():
        raise Exception('Different files: %s %s' % (name, fname))
    os.remove(name)
    os.remove(name + '.toml')
    return smodel