def setUp(self): BaseHandler.init(TEST_PAYMENT_NAME, self.items, 'secretkey', self.callback) self.engine = Engine() self.payment = Payment(TEST_PAYMENT_NAME, self.items, 'secretkey', self.engine.callback) self.payment.collection.drop()
def __init__(self, name, prices, secret, callback, port=8888): super(BillingThread, self).__init__() BaseHandler.init(name, prices, secret, callback) self.app = application self.port = port self.loop = IOLoop.instance()