Ejemplo n.º 1
0
 def test_compile_from_source(self):
     self.tpath = tempfile.mkdtemp()
     file = path.join(path.curdir, 'tests', 'Fixture.epf')
     assert pyv8unpack.decompile([file], self.tpath)
     tpath = path.join(self.tpath, 'tests', 'Fixture')
     assert pyv8unpack.compilefromsource(tpath, self.tfile, 'epf') == self.tfile
     self.assertTrue(path.exists(self.tfile), 'Собранный файл не существует {}'.format(self.tfile))
Ejemplo n.º 2
0
 def test_compile_from_source(self):
     self.tpath = tempfile.mkdtemp()
     file = path.join(path.curdir, 'tests', 'Fixture.epf')
     assert pyv8unpack.decompile([file], self.tpath)
     tpath = path.join(self.tpath, 'tests', 'Fixture')
     assert pyv8unpack.compilefromsource(tpath, self.tfile,
                                         'epf') == self.tfile
     self.assertTrue(path.exists(self.tfile),
                     'Собранный файл не существует {}'.format(self.tfile))
Ejemplo n.º 3
0
 def test_decompile_checkfullpath(self):
     self.tpath = tempfile.mkdtemp()
     file = path.join(path.curdir, 'tests', 'Fixture.epf')
     assert pyv8unpack.decompile([file], self.tpath)
Ejemplo n.º 4
0
 def test_decompile_checkfullpath(self):
     self.tpath = tempfile.mkdtemp()
     file = path.join(path.curdir, 'tests', 'Fixture.epf')
     assert pyv8unpack.decompile([file], self.tpath)