#NEWLINE# def test_create_projects( cd_to_tmpdir ) : #NEWLINE# #INDENT# doc_worktree = TestDocWorkTree ( ) #NEWLINE# doc_worktree . add_templates ( ) #NEWLINE# doc_worktree . create_doxygen_project ( 'foo' ) #NEWLINE# doc_worktree . create_sphinx_project ( 'bar' , depends = [ 'foo' ] ) #NEWLINE# foo_proj = doc_worktree . get_doc_project ( 'foo' ) #NEWLINE# bar_proj = doc_worktree . get_doc_project ( 'bar' ) #NEWLINE# assert ( foo_proj . doc_type == 'doxygen' ) #NEWLINE# assert ( foo_proj . depends == list ( ) ) #NEWLINE# assert ( foo_proj . name == 'foo' ) #NEWLINE# assert ( bar_proj . name == 'bar' ) #NEWLINE# assert ( bar_proj . doc_type == 'sphinx' ) #NEWLINE# assert ( bar_proj . depends == [ 'foo' ] ) #NEWLINE# assert ( doc_worktree . template_project . src == 'templates' )