class TestOutput(Harness): def setUp(self): self.t = Cleaner() self.setup_logger() @unittest.skip('IsolatedTypesetter does not make files invisible anymore') def test_invisible(self): self.typeset('simple') for aux in self.t.output_files(self.t.fls_file('simple')): output = Popen(['GetFileInfo', '-av', aux], stdout=PIPE).communicate()[0].rstrip() if os.path.splitext(aux)[-1] != '.pdf': print((aux, output)) ## self.assertEqual(output, '1') def test_output_files(self): expected = ['./simple.fls', 'simple.log', 'simple.aux', 'simple.pdf'] computed = list(Cleaner.output_files(os.path.join(latex_dir, 'simple.fls'))) self.assertEqual(computed[1:], expected[1:])
class TestOutput(Harness): def setUp(self): self.t = Cleaner() self.setup_logger() @unittest.skip('IsolatedTypesetter does not make files invisible anymore') def test_invisible(self): self.typeset('simple') for aux in self.t.output_files(self.t.fls_file('simple')): output = Popen(['GetFileInfo', '-av', aux], stdout=PIPE).communicate()[0].rstrip() if os.path.splitext(aux)[-1] != '.pdf': print(aux, output) ## self.assertEqual(output, '1') def test_output_files(self): expected = ['./simple.fls', 'simple.log', 'simple.aux', 'simple.pdf'] computed = list( Cleaner.output_files(os.path.join(test_dir, 'simple.fls'))) self.assertEqual(computed[1:], expected[1:])
def test_output_files(self): expected = ['./simple.fls', 'simple.log', 'simple.aux', 'simple.pdf'] computed = list(Cleaner.output_files(os.path.join(latex_dir, 'simple.fls'))) self.assertEqual(computed[1:], expected[1:])
def test_output_files(self): expected = ['./simple.fls', 'simple.log', 'simple.aux', 'simple.pdf'] computed = list( Cleaner.output_files(os.path.join(test_dir, 'simple.fls'))) self.assertEqual(computed[1:], expected[1:])