#NEWLINE# def test_custom_permission_name_max_length( self ) : #NEWLINE# #INDENT# custom_permission_name = ( 'some ridiculously long verbose name that is out of control' * 5 ) #NEWLINE# class Checked ( models . Model ) : #NEWLINE# #INDENT# class Meta ( ) : #NEWLINE# #INDENT# permissions = [ ( 'my_custom_permission' , custom_permission_name ) ] #NEWLINE# #UNINDENT# #UNINDENT# errors = checks . run_checks ( self . apps . get_app_configs ( ) ) #NEWLINE# self . assertEqual ( errors , [ checks . Error ( ( "The permission named '%s' of model 'auth_tests.Checked' is longer than 255 characters." % self ) , obj = Checked , id = 'auth.E008' ) ] )