#NEWLINE# def test_removing_group_from_disk( qisrc_action , git_server , interact ) : #NEWLINE# #INDENT# git_server . create_group ( 'foo' , [ 'a' , 'b' ] ) #NEWLINE# git_server . create_group ( 'bar' , [ 'b' , 'c' ] ) #NEWLINE# qisrc_action ( 'init' , git_server . manifest_url , '--group' , 'foo' , '--group' , 'bar' ) #NEWLINE# d_url = git_server . create_repo ( 'd' ) . clone_url #NEWLINE# qisrc_action ( 'add' , d_url ) #NEWLINE# git_worktree = TestGitWorkTree ( ) #NEWLINE# a_path = git_worktree . get_git_project ( 'a' ) . path #NEWLINE# b_path = git_worktree . get_git_project ( 'b' ) . path #NEWLINE# c_path = git_worktree . get_git_project ( 'c' ) . path #NEWLINE# d_path = git_worktree . get_git_project ( 'd' ) . path #NEWLINE# interact . answers = [ True ] #NEWLINE# qisrc_action ( 'rm-group' , 'foo' , '--from-disk' ) #NEWLINE# assert ( not os . path . exists ( a_path ) ) #NEWLINE# assert os . path . exists ( b_path ) #NEWLINE# assert os . path . exists ( d_path )