#NEWLINE# def test_disallow_blank( self ) : #NEWLINE# #INDENT# "\n        By default '' is not a valid input.\n        " #NEWLINE# field = serializers . CharField ( ) #NEWLINE# with pytest . raises ( serializers . ValidationError ) as exc_info : #NEWLINE# #INDENT# field . run_validation ( '' ) #NEWLINE# #UNINDENT# assert ( exc_info . value . detail == [ 'This field may not be blank.' ] )