def test_path(self): computed = Runner.paths('path/file.tex') expected = {'full_path':'path/file.tex', 'file_base':'file', 'base':'path', 'root':'path/file',} self.assertEqual(computed, expected)
def test_trailing_dot(self): computed = Runner.paths('simple.') expected = {'full_path':'simple.tex', 'file_base':'simple', 'base':'', 'root':'simple',} self.assertEqual(computed, expected)
def test_path(self): computed = Runner.paths('path/file.tex') expected = { 'full_path': 'path/file.tex', 'file_base': 'file', 'base': 'path', 'root': 'path/file', } self.assertEqual(computed, expected)
def test_trailing_dot(self): computed = Runner.paths('simple.') expected = { 'full_path': 'simple.tex', 'file_base': 'simple', 'base': '', 'root': 'simple', } self.assertEqual(computed, expected)
def test_wrong_ext(self): with self.assertRaises(LaTeXError): Runner.paths('simple.xxx')