#NEWLINE# def test_dumping( self ) : #NEWLINE# #INDENT# instance = JSONModel ( field = { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# 'c' : None , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = serializers . serialize ( 'json' , [ instance ] ) #NEWLINE# self . assertJSONEqual ( self , self . test_data )