def METHOD_NAME(self):
    # create a writable temp directory
    tempdir = tempfile.mkdtemp()
    # write a temporary SPEC file
    specname = os.path.join(tempdir, "input.dat")
    with io.open(specname, "wb") as fd:
        fd.write(bytes(sftext, 'ascii'))
    # convert it
    h5name = os.path.join(tempdir, "output.h5")
    assert not os.path.isfile(h5name)
    command_list = ["convert", "-m", "w",
                    specname, "-o", h5name]
    result = convert.main(command_list)
    self.assertEqual(result, 0)
    self.assertTrue(os.path.isfile(h5name))
    with h5py.File(h5name, "r") as h5f:
        title12 = h5py_read_dataset(h5f["/1.2/title"])
        self.assertEqual(title12,
                         "aaaaaa")
        creator = h5f.attrs.get("creator")
        self.assertIsNotNone(creator, "No creator attribute in NXroot group")
        self.assertIn("silx convert (v%s)" % silx.version, creator)
    # delete input file
    gc.collect()  # necessary to free spec file on Windows
    os.unlink(specname)
    os.unlink(h5name)
    os.rmdir(tempdir)