예제 #1
0
 def test_upload(self):
     q = Queue()
     consumer = Consumer(q, TEST_API_KEY)
     track = {
         'type': 'track',
         'event': 'python event',
         'distinct_id': 'distinct_id'
     }
     q.put(track)
     success = consumer.upload()
     self.assertTrue(success)
예제 #2
0
 def test_upload(self):
     q = Queue()
     consumer = Consumer(q, TEST_API_KEY)
     track = {
         "type": "track",
         "event": "python event",
         "distinct_id": "distinct_id"
     }
     q.put(track)
     success = consumer.upload()
     self.assertTrue(success)