Exemplo n.º 1
0
	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)
Exemplo n.º 2
0
	def test_trailing_dot(self):
		computed = Runner.paths('simple.')
		expected = {'full_path':'simple.tex',
				'file_base':'simple',
				'base':'',
				'root':'simple',}
		self.assertEqual(computed, expected)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 def test_trailing_dot(self):
     computed = Runner.paths('simple.')
     expected = {
         'full_path': 'simple.tex',
         'file_base': 'simple',
         'base': '',
         'root': 'simple',
     }
     self.assertEqual(computed, expected)
Exemplo n.º 5
0
	def test_wrong_ext(self):
		with self.assertRaises(LaTeXError):
			Runner.paths('simple.xxx')
Exemplo n.º 6
0
 def test_wrong_ext(self):
     with self.assertRaises(LaTeXError):
         Runner.paths('simple.xxx')