#NEWLINE# def test_datetime_inside_int_keys_with_keys_enabled( self ) : #NEWLINE# #INDENT# t = datetime . time ( hour = 10 ) #NEWLINE# s = jsonpickle . encode ( { #NEWLINE# #INDENT# 1 : t , #NEWLINE# 2 : t , #NEWLINE# #UNINDENT# } , keys = True ) #NEWLINE# d = jsonpickle . decode ( s , keys = True ) #NEWLINE# self . assertEqual ( d [ 1 ] , d [ 2 ] ) #NEWLINE# self . assertTrue ( ( d [ 1 ] is d [ 2 ] ) ) #NEWLINE# self . assertTrue ( isinstance ( t [ 1 ] , datetime . time ) )