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