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)
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)