#NEWLINE# def assertEncodeDecode( self , json_input ) : #NEWLINE# #INDENT# expect = SAMPLE_DATA #NEWLINE# actual = jsonpickle . decode ( json_input ) #NEWLINE# self . assertEqual ( expect [ 'things' ] [ 0 ] . name , actual [ 'things' ] [ 0 ] . name ) #NEWLINE# self . assertEqual ( expect [ 'things' ] [ 0 ] . child , actual [ 'things' ] [ 0 ] . child ) #NEWLINE# pickled = jsonpickle . encode ( SAMPLE_DATA ) #NEWLINE# actual = jsonpickle . decode ( pickled ) #NEWLINE# self . assertEqual ( expect [ 'things' ] [ 0 ] . name , actual [ 'things' ] [ 0 ] . name ) #NEWLINE# self . assertEqual ( expect [ 'things' ] [ 0 ] . child , actual [ 'things' ] [ 0 ] . child )