<s> from . . azurectl_exceptions import AzureInvalidCommand <EOL> class Validations ( object ) : <EOL> @ classmethod <EOL> def validate_min_length ( self , field_name , value , min_length ) : <EOL> if len ( value ) < min_length : <EOL> raise AzureInvalidCommand ( <EOL> '<STR_LIT>' % <EOL> ( field_name , min_length ) ) <EOL> return True <EOL> @ classmethod <EOL> def validate_max_length ( self , field_name , value , max_length ) : <EOL> if len ( value ) > max_length : <EOL> raise AzureInvalidCommand ( <EOL> '<STR_LIT>' % <EOL> ( field_name , max_length ) ) <EOL> return True </s>
