コード例 #1
0
ファイル: test_ipkg.py プロジェクト: jjehannet/Bento
    def setUp(self):
        self.src_root = tempfile.mkdtemp()
        self.bld_root = self.src_root

        root = create_root_with_source_tree(self.src_root, self.bld_root)
        self.top_node = root.find_node(self.src_root)

        self.meta, self.sections, self.nodes = create_simple_ipkg_args(self.top_node)
コード例 #2
0
    def setUp(self):
        self.src_root = tempfile.mkdtemp()
        self.bld_root = self.src_root

        root = create_root_with_source_tree(self.src_root, self.bld_root)
        self.top_node = root.find_node(self.src_root)

        self.meta, self.sections, self.nodes = create_simple_ipkg_args(self.top_node)
コード例 #3
0
ファイル: test_wininst_utils.py プロジェクト: dholth/Bento
    def test_create_exe(self):
        # FIXME: do a real test here
        meta, sections, nodes = create_simple_ipkg_args(self.top_node)
        ipkg = BuildManifest(sections, meta, {})

        fid, arcname = tempfile.mkstemp(prefix="zip")
        try:
            create_exe(ipkg, arcname, "some-name.exe")
        finally:
            os.close(fid)
コード例 #4
0
    def test_create_exe(self):
        # FIXME: do a real test here
        meta, sections, nodes = create_simple_ipkg_args(self.top_node)
        ipkg = BuildManifest(sections, meta, {})

        fid, arcname = tempfile.mkstemp(prefix="zip")
        try:
            create_exe(ipkg, arcname, "some-name.exe")
        finally:
            os.close(fid)
コード例 #5
0
ファイル: test_wininst_utils.py プロジェクト: dholth/Bento
 def test_get_inidata_run(self):
     """Simply execute get_inidata."""
     # FIXME: do a real test here
     meta, sections, nodes = create_simple_ipkg_args(self.top_node)
     ipkg = BuildManifest(sections, meta, {})
     get_inidata(ipkg)
コード例 #6
0
 def test_get_inidata_run(self):
     """Simply execute get_inidata."""
     # FIXME: do a real test here
     meta, sections, nodes = create_simple_ipkg_args(self.top_node)
     ipkg = BuildManifest(sections, meta, {})
     get_inidata(ipkg)
コード例 #7
0
ファイル: test_wininst_utils.py プロジェクト: jjehannet/Bento
 def test_get_inidata_run(self):
     """Simply execute get_inidata."""
     # FIXME: do a real test here
     meta, sections, nodes = create_simple_ipkg_args(self.top_node)
     ipkg = InstalledPkgDescription(sections, meta, {})
     get_inidata(ipkg)
コード例 #8
0
ファイル: test_wininst_utils.py プロジェクト: jjehannet/Bento
 def test_get_inidata_run(self):
     """Simply execute get_inidata."""
     # FIXME: do a real test here
     meta, sections, nodes = create_simple_ipkg_args(self.top_node)
     ipkg = InstalledPkgDescription(sections, meta, {})
     get_inidata(ipkg)