#NEWLINE# def test_use_correct_manifest_branch( git_worktree , git_server ) : #NEWLINE# #INDENT# git_server . switch_manifest_branch ( 'devel' ) #NEWLINE# git_server . push_file ( 'manifest.git' , 'a_file' , 'some contents\n' , branch = 'devel' ) #NEWLINE# manifest_url = git_server . manifest_url #NEWLINE# worktree_syncer = qisrc . sync . WorkTreeSyncer ( manifest_url ) #NEWLINE# worktree_syncer . configure_manifest ( manifest_url , branch = 'devel' ) #NEWLINE# local_manifest = git_worktree . tmpdir . join ( '.qi' , 'manifests' , 'default' ) #NEWLINE# git = qisrc . git . Git ( local_manifest . strpath ) #NEWLINE# a_file = git_worktree . tmpdir . join ( '.qi' , 'manifests' , 'default' , 'a_file' ) #NEWLINE# assert ( a_file . read ( ) == 'some contents\n' )