#NEWLINE# def test_dumping( self ) : #NEWLINE# #INDENT# instance = NullBit1Model ( flag = None ) #NEWLINE# data = json . loads ( serializers . serialize ( 'json' , [ instance ] ) ) [ 0 ] #NEWLINE# fields = data [ 'fields' ] #NEWLINE# assert ( instance [ 'flag' ] is None )