예제 #1
0
파일: test_tree.py 프로젝트: mchubby/roast
 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
파일: test_tree.py 프로젝트: mchubby/roast
 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
파일: test_tree.py 프로젝트: mchubby/roast
 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
파일: test_tree.py 프로젝트: mchubby/roast
 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
파일: test_tree.py 프로젝트: mchubby/roast
 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
파일: test_tree.py 프로젝트: mchubby/roast
 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
파일: test_tree.py 프로젝트: mchubby/roast
 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
파일: test_tree.py 프로젝트: mchubby/roast
 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
파일: test_tree.py 프로젝트: mchubby/roast
 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
파일: test_tree.py 프로젝트: mchubby/roast
 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
파일: test_tree.py 프로젝트: mchubby/roast
 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'))