#NEWLINE# def test_basic_track( self ) : #NEWLINE# #INDENT# client = self . client #NEWLINE# ( success , msg ) = client . track ( 'userId' , 'python test event' ) #NEWLINE# client . flush ( ) #NEWLINE# self . assertTrue ( client ) #NEWLINE# self . assertFalse ( self . failed ) #NEWLINE# self . assertEqual ( msg [ 'event' ] , 'python test event' ) #NEWLINE# self . assertTrue ( isinstance ( msg [ 'timestamp' ] , str ) ) #NEWLINE# self . assertTrue ( isinstance ( msg [ 'messageId' ] , str ) ) #NEWLINE# self . assertEqual ( msg [ 'userId' ] , 'userId' ) #NEWLINE# self . assertEqual ( msg [ 'properties' ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( msg [ 'type' ] , 'track' )