#NEWLINE# def test_delete_with_non_member( self ) : #NEWLINE# #INDENT# view = UserGroupDelete . as_view ( ) #NEWLINE# url = reverse ( 'admin:usergroup_delete' , kwargs = { #NEWLINE# #INDENT# 'project_id' : self . project . id , #NEWLINE# 'usergroup_id' : self . usergroup . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# request = APIRequestFactory ( ) . get ( url , project_id = self . project . id , usergroup_id = self . usergroup . id ) #NEWLINE# request . user = self . contributor #NEWLINE# response = view ( request , project_id = view . project . id , usergroup_id = self . usergroup . id ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertEqual ( Group . objects . count ( ) , 2 )