Exemple #1
0
 def test_CLCNWECHAT_currency_is_error(self):
     case_data = BaseCaseRequest("test_CLCNWECHAT_currency_is_error")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
 def test_payeeName_is_null(self):
     case_data = BaseCaseRequest("test_payeeName_is_null")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
 def test_payChannelCode_is_error(self):
     case_data = BaseCaseRequest("test_payChannelCode_is_error")
     res = case_data.send_requests()
     res_data = res.json().get("result")
     expect_res = case_data.expect_res
     logging.info(res_data)
     self.assertEqual(expect_res, res_data)
Exemple #4
0
 def test_CLCNWECHAT_amount_is_overlength(self):
     case_data = BaseCaseRequest("test_CLCNWECHAT_amount_is_overlength")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
Exemple #5
0
 def test_CLVNMOMOPAY_order(self):
     case_data = BaseCaseRequest("test_CLVNMOMOPAY_order")
     res = case_data.send_requests()
     res_data = res.json()
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
Exemple #6
0
 def test_CLCNWECHAT_expireTime_is_less(self):
     case_data = BaseCaseRequest("test_CLCNWECHAT_expireTime_is_less")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
 def test_payment_currency_is_over_length(self):
     case_data = BaseCaseRequest("test_payment_currency_is_over_length")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
 def test_rf_account_bill_not_exists(self):
     case_data = BaseCaseRequest("test_rf_account_bill_not_exists")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
 def test_payment_amount_is_empty(self):
     case_data = BaseCaseRequest("test_payment_amount_is_empty")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
 def test_account_bill_settleDate_is_null(self):
     case_data = BaseCaseRequest("test_account_bill_settleDate_is_null")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
 def test_account_bill_bizType_is_error(self):
     case_data = BaseCaseRequest("test_account_bill_bizType_is_error")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
 def test_payeeAccount_is_error(self):
     case_data = BaseCaseRequest("test_payeeAccount_is_error")
     res = case_data.send_requests()
     res_data = res.json()
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
 def test_requests_base_body_version_is_overlength(self):
     case_data = BaseCaseRequest(
         "test_requests_base_body_version_is_overlength")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
Exemple #14
0
 def test_CLCNWECHAT_amount_is_null(self):
     case_data = BaseCaseRequest("test_CLCNWECHAT_amount_is_null")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(
         "test_CLCNWECHAT_CNY_not_is_amount res_data={}".format(res_data))
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
Exemple #15
0
 def test_CLCNWECHAT_refundAmount_order_is_exists(self):
     case_data = BaseCaseRequest(
         "test_CLCNWECHAT_refundAmount_order_is_exists")
     res = case_data.send_requests()
     res_data = res.json().get("code")
     logging.info(res_data)
     expect_res = case_data.expect_res
     self.assertEqual(expect_res, res_data)
 def test_rf_account_bill_exists(self):
     case_data = BaseCaseRequest("test_rf_account_bill_exists")
     res = case_data.send_requests()
     res_data = res.json().get("result")
     logging.info(res_data)
     self.assertTrue(res_data)
Exemple #17
0
 def test_CLCNWECHAT_create_order(self):
     case_data = BaseCaseRequest("test_CLCNWECHAT_create_order")
     res = case_data.send_requests()
     res_data = res.json().get("result")
     logging.info(res_data)
     self.assertTrue(res_data)
Exemple #18
0
 def test_CLCNWECHAT_amount_is_int(self):
     case_data = BaseCaseRequest("test_CLCNWECHAT_amount_is_int")
     res = case_data.send_requests()
     res_data = res.json()
     logging.info(res_data)
     self.assertTrue(res_data)
 def test_payChannelCode_is_NULL(self):
     case_data = BaseCaseRequest("test_payChannelCode_is_NULL")
     res = case_data.send_requests()
     res_data = res.json().get("result")
     logging.info(res_data)
     self.assertTrue(res_data)