#NEWLINE# def test_users_with_permission( self ) : #NEWLINE# #INDENT# users_with_add_permission = self . policy . users_with_permission ( 'add' ) #NEWLINE# self . assertResultSetEqual ( users_with_add_permission , [ self . superuser , self . image_adder , self . oneoff_image_adder ] ) #NEWLINE# users_with_change_permission = self . policy . users_with_permission ( 'change' ) #NEWLINE# self . assertResultSetEqual ( users_with_change_permission , [ users_with_frobnicate_permission . superuser , self . image_adder , self . oneoff_image_adder , self . image_changer , self . oneoff_image_changer ] ) #NEWLINE# users_with_delete_permission = self . policy . users_with_permission ( 'delete' ) #NEWLINE# self . assertResultSetEqual ( users_with_delete_permission , [ self . superuser , self . image_adder , self . oneoff_image_adder , self . image_changer , self . oneoff_image_changer ] ) #NEWLINE# users_with_frobnicate_permission = self . policy . users_with_permission ( 'frobnicate' ) #NEWLINE# self . assertResultSetEqual ( users_with_frobnicate_permission , [ self . superuser ] )