#NEWLINE# def test_switching_group( qisrc_action , git_server ) : #NEWLINE# #INDENT# git_server . create_group ( 'default' , [ 'naooqi' , 'agility' , 'vision' , 'choregraphe' ] , default = True ) #NEWLINE# git_server . create_group ( 'agility' , [ 'agility' ] ) #NEWLINE# qisrc_action ( 'init' , git_server . manifest_url , '--group' , 'agility' ) #NEWLINE# git_worktree = TestGitWorkTree ( ) #NEWLINE# assert ( len ( git_server . git_projects ) == 1 ) #NEWLINE# qisrc_action ( 'add-group' , 'default' ) #NEWLINE# git_worktree = TestGitWorkTree ( ) #NEWLINE# assert ( len ( git_worktree . git_projects ) == 4 ) #NEWLINE# qisrc_action ( 'rm-group' , 'default' ) #NEWLINE# git_worktree = TestGitWorkTree ( ) #NEWLINE# assert ( len ( git_worktree . git_projects ) == 1 )