示例#1
0
 def test_subdir_include_relative(self):
     path = self.path('data', 'subdir-include', 'input')
     # make a relative path that points to path
     curdir = os.getcwd()
     prefix = curdir+'/'
     assert path.startswith(prefix)
     relative = path[len(prefix):]
     t = tree.Tree(relative)
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'subdir-include', 'output'))
示例#2
0
 def test_entities(self):
     t = tree.Tree(self.path('data', 'entities', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'entities', 'output'))
示例#3
0
 def test_config_order(self):
     t = tree.Tree(self.path('data', 'config-order', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'config-order', 'output'))
示例#4
0
 def test_ignore(self):
     t = tree.Tree(self.path('data', 'ignore', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'ignore', 'output'))
示例#5
0
 def test_subdir_include(self):
     t = tree.Tree(self.path('data', 'subdir-include', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'subdir-include', 'output'))
示例#6
0
 def test_navigation(self):
     t = tree.Tree(self.path('data', 'navigation', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'navigation', 'output'))
示例#7
0
 def test_graphviz(self):
     t = tree.Tree(self.path('data', 'graphviz', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'graphviz', 'output'))
示例#8
0
 def test_s5_theme(self):
     t = tree.Tree(self.path('data', 's5-theme', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 's5-theme', 'output'))
示例#9
0
 def test_link_rewrite(self):
     t = tree.Tree(self.path('data', 'link-rewrite', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'link-rewrite', 'output'))
示例#10
0
 def test_template(self):
     t = tree.Tree(self.path('data', 'with-template', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'with-template', 'output'))
示例#11
0
 def test_xsl_multiple(self):
     t = tree.Tree(self.path('data', 'xslt-multi', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'xslt-multi', 'output'))
示例#12
0
 def test_comment(self):
     t = tree.Tree(self.path('data', 'python-comment', 'input'))
     tmp = maketemp()
     t.export(tmp)
     self.verify(tmp, self.path('data', 'python-comment', 'output'))