#NEWLINE# def test_json_validate( self ) : #NEWLINE# #INDENT# input_data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# serializer = self . Serializer ( data = serializer ) #NEWLINE# assert serializer . is_valid ( ) #NEWLINE# input_data = { #NEWLINE# #INDENT# 'nested' : { #NEWLINE# #INDENT# 'one' : '1' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# serializer = self . Serializer ( data = input_data ) #NEWLINE# assert serializer . is_valid ( )