def test_CLCNWECHAT_ORDER_is_unauthorized(self): case_data = BaseCaseRequest("test_CLCNWECHAT_ORDER_is_unauthorized") 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_not_exists(self): case_data = BaseCaseRequest("test_payChannelCode_is_not_exists") res = case_data.send_requests() res_data = res.json().get("result") logging.info(res_data) expect_res = case_data.expect_res self.assertEqual(expect_res, res_data)
def test_journalNumber_is_repetition(self): case_data = BaseCaseRequest("test_journalNumber_is_repetition") 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_payeeType_is_not_exits(self): case_data = BaseCaseRequest("test_payeeType_is_not_exits") 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_requests_base_body_version_is_error(self): case_data = BaseCaseRequest("test_requests_base_body_version_is_error") res = case_data.send_requests() res_data = res.json().get("code") logging.info(res_data) expect_res = case_data.expect_res self.assertIn(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_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_CLCNWECHAT_refundAmount_is_minus(self): case_data = BaseCaseRequest("test_CLCNWECHAT_refundAmount_is_minus") 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_CLCNWECHAT_refund_order_is_not_null(self): case_data = BaseCaseRequest("test_CLCNWECHAT_refund_order_is_not_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_CLCNWECHAT_payChannelCode_is_error(self): case_data = BaseCaseRequest("test_CLCNWECHAT_payChannelCode_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_CLCNWECHAT_ORDERSTATE_processed(self): case_data = BaseCaseRequest("test_CLCNWECHAT_ORDERSTATE_processed") res = case_data.send_requests() res_data = res.json().get("result") logging.info(res_data) expect_res = case_data.expect_res self.assertEqual(expect_res, res_data)
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)
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_account_bill_bizType_is_null(self): case_data = BaseCaseRequest("test_account_bill_bizType_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_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_transTime_is_error(self): case_data = BaseCaseRequest("test_transTime_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_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_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)
def test_account_bill_settleDateformat_is_error(self): case_data = BaseCaseRequest( "test_account_bill_settleDateformat_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_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)
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)
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)