#NEWLINE# def test_build_prefix( build_worktree ) : #NEWLINE# #INDENT# local_xml = build_worktree . qibuild_xml #NEWLINE# with open ( local_xml , 'w' ) as fp : #NEWLINE# #INDENT# fp . write ( '\n<qibuild>\n <build prefix="mybuild" />\n</qibuild>\n' ) #NEWLINE# #UNINDENT# build_config = qibuild . build_config . CMakeBuildConfig ( build_worktree ) #NEWLINE# assert ( build_config . build_prefix == os . path . join ( fp . root , 'mybuild' ) )