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))
def test_decompile_checkfullpath(self): self.tpath = tempfile.mkdtemp() file = path.join(path.curdir, 'tests', 'Fixture.epf') assert pyv8unpack.decompile([file], self.tpath)