Esempio n. 1
0
 def test_translate_filename7(self):
     out_file = docbook.translate_file_path(
         'in/article/abc.md', docbook.parse_pattern('in/*/*.md'),
         'out/{2}-{2}.html')
     self.assertEqual(out_file, 'out/abc-abc.html')
Esempio n. 2
0
 def test_translate_filename1(self):
     out_file = docbook.translate_file_path(
         'article-abc.md', docbook.parse_pattern('article-abc.md'),
         'article-abc.html')
     self.assertEqual(out_file, 'article-abc.html')
Esempio n. 3
0
 def test_translate_filename5(self):
     out_file = docbook.translate_file_path(
         'in/article-abc/doc.md', docbook.parse_pattern('in/*/doc.md'),
         'out/{1}/index.html')
     self.assertEqual(out_file, 'out/article-abc/index.html')