#NEWLINE# def test_instances_user_has_permission_for( self ) : #NEWLINE# #INDENT# all_images = [ self . adder_image , self . useless_image , self . anonymous_image ] #NEWLINE# no_images = [ ] #NEWLINE# self . assertResultSetEqual ( self . policy . instances_user_has_permission_for ( self . superuser , 'change' ) , all_images ) #NEWLINE# self . assertResultSetEqual ( self . policy . instances_user_has_permission_for ( self . inactive_superuser , 'change' ) , no_images ) #NEWLINE# self . assertResultSetEqual ( self . policy . instances_user_has_permission_for ( self . image_changer , 'change' ) , all_images ) #NEWLINE# self . assertResultSetEqual ( self . policy . instances_user_has_permission_for ( self . oneoff_image_changer , 'change' ) , all_images ) #NEWLINE# self . assertResultSetEqual ( self . policy . instances_user_has_permission_for ( self . useless_user , 'change' ) , no_images ) #NEWLINE# self . assertResultSetEqual ( self . policy . instances_user_has_permission_for ( self . inactive_image_changer , 'change' ) , no_images ) #NEWLINE# self . assertResultSetEqual ( self . policy . instances_user_has_permission_for ( self . image_changer , 'delete' ) , no_images ) #NEWLINE# self . assertResultSetEqual ( self . policy . instances_user_has_permission_for ( self . anonymous_user , 'change' ) , no_images )