#NEWLINE# def test_upload( self ) : #NEWLINE# #INDENT# q = Queue ( ) #NEWLINE# consumer = Consumer ( q , 'testsecret' ) #NEWLINE# track = { #NEWLINE# #INDENT# 'type' : 'track' , #NEWLINE# 'event' : 'python event' , #NEWLINE# 'userId' : 'userId' , #NEWLINE# #UNINDENT# } #NEWLINE# q . put ( track ) #NEWLINE# success = consumer . upload ( ) #NEWLINE# self . assertTrue ( success )