#NEWLINE# def test_custom_encoder( self ) : #NEWLINE# #INDENT# 'Test encoder_cls and object_hook' #NEWLINE# value = ( 1 + 3j ) #NEWLINE# obj = JSONModelCustomEncoders . objects . create ( json = value ) #NEWLINE# new_obj = JSONModelCustomEncoders . objects . get ( pk = obj . pk ) #NEWLINE# self . assertEqual ( value , new_obj . json )