def test_make_info_not_raise_exception(self): trade_no = "trade_no_224" subject = "test_make_info" body = "test the make info not raise" total_fee = 12.00 show_url = "http://www.showme.com" dut = utils.make_info(trade_no, subject, body, total_fee, show_url) self.assertIsNotNone(dut)
def get_pay_info(request): msg = str(request) log = logging.getLogger('ali_pay') log.info(msg) trade_no = "trade_no" subject = "subject" body = "body" total_fee = 1 notify_url = "callback_url" info_str = utils.make_info(trade_no, subject, body, total_fee, notify_url) return HttpResponse(info_str)