#NEWLINE# def test_import_data( self ) : #NEWLINE# #INDENT# timestamp = time . time ( ) #NEWLINE# self . mp . import_data ( 'MY_API_KEY' , 'ID' , 'button press' , timestamp , { #NEWLINE# #INDENT# 'size' : 'big' , #NEWLINE# 'color' : 'blue' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( self . consumer . log == [ ( 'imports' , { #NEWLINE# #INDENT# 'event' : 'button press' , #NEWLINE# 'properties' : { #NEWLINE# #INDENT# 'token' : self . TOKEN , #NEWLINE# 'size' : 'big' , #NEWLINE# 'color' : 'blue' , #NEWLINE# 'distinct_id' : 'ID' , #NEWLINE# 'time' : int ( timestamp ) , #NEWLINE# 'mp_lib' : 'python' , #NEWLINE# '$lib_version' : mixpanel . __version__ , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , 'MY_API_KEY' ) ] )