#NEWLINE# def test_datetime_structure( self ) : #NEWLINE# #INDENT# obj = datetime . datetime . now ( ) #NEWLINE# flattened = self . pickler . flatten ( obj ) #NEWLINE# self . assertTrue ( ( tags . OBJECT in flattened ) ) #NEWLINE# self . assertTrue ( ( '__reduce__' in flattened ) ) #NEWLINE# inflated = self . unpickler . restore ( flattened ) #NEWLINE# self . assertEqual ( obj , inflated )