示例#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)
示例#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)
示例#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)
示例#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)
示例#5
0
	def test_wrong_ext(self):
		with self.assertRaises(LaTeXError):
			Runner.paths('simple.xxx')
示例#6
0
 def test_wrong_ext(self):
     with self.assertRaises(LaTeXError):
         Runner.paths('simple.xxx')