#NEWLINE# def test_people_set_created_date_datetime( self ) : #NEWLINE# #INDENT# created = datetime . datetime ( 2014 , 2 , 14 , 1 , 2 , 3 ) #NEWLINE# self . mp . people_set ( 'amq' , { #NEWLINE# #INDENT# '$created' : self , #NEWLINE# 'favorite color' : 'purple' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( self . consumer . log == [ ( 'people' , { #NEWLINE# #INDENT# '$time' : int ( ( self . mp . _now ( ) * 1000 ) ) , #NEWLINE# '$token' : self . TOKEN , #NEWLINE# '$distinct_id' : 'amq' , #NEWLINE# '$set' : { #NEWLINE# #INDENT# '$created' : '2014-02-14T01:02:03' , #NEWLINE# 'favorite color' : 'purple' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ] )