<s> from . import ValidationTestCase <EOL> from . models import CustomMessagesModel <EOL> class CustomMessagesTest ( ValidationTestCase ) : <EOL> def test_custom_simple_validator_message ( self ) : <EOL> cmm = CustomMessagesModel ( number = <NUM_LIT:12> ) <EOL> self . assertFieldFailsValidationWithMessage ( cmm . full_clean , '<STR_LIT>' , [ '<STR_LIT>' ] ) <EOL> def test_custom_null_message ( self ) : <EOL> cmm = CustomMessagesModel ( ) <EOL> self . assertFieldFailsValidationWithMessage ( cmm . full_clean , '<STR_LIT>' , [ '<STR_LIT>' ] ) </s>
