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')
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')
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')