当前位置: 首页>>代码示例>>Python>>正文


Python VisaAPIClient.do_mutual_auth_request方法代码示例

本文整理汇总了Python中visa.helpers.visa_api_client.VisaAPIClient.do_mutual_auth_request方法的典型用法代码示例。如果您正苦于以下问题:Python VisaAPIClient.do_mutual_auth_request方法的具体用法?Python VisaAPIClient.do_mutual_auth_request怎么用?Python VisaAPIClient.do_mutual_auth_request使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在visa.helpers.visa_api_client.VisaAPIClient的用法示例。


在下文中一共展示了VisaAPIClient.do_mutual_auth_request方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: TestManageNotifications

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestManageNotifications(unittest.TestCase):
   
    config = parser.ConfigParser()
    config_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)),'..','configuration.ini'))
    config.read(config_path)
    
    def setUp(self):
        self.visa_api_client = VisaAPIClient()
        self.notification_subscription_request = json.loads('''{
                         "contactType": "''' + self.config.get('VDP','vtaNotificationContactType') + '''",
                         "contactValue": "[email protected]",
                         "emailFormat": "None",
                         "last4": "''' + self.config.get('VDP','vtaCreateCustomerLastFour') + '''",
                         "phoneCountryCode": "en-us",
                         "platform": "None",
                         "preferredLanguageCode": "''' + self.config.get('VDP','vtaPreferredLanguageCode') + '''",
                         "serviceOffering": "WelcomeMessage",
                         "serviceOfferingSubType": "WelcomeMessage",
                         "substitutions": {}
                      }''')
         
    def test_notification_subscription(self):
        base_uri = 'vta/'
        resource_path = 'v3/communities/'+ self.config.get('VDP','vtaCommunityCode') +'/portfolios/' + self.config.get('VDP','vtaPortfolioNumber') +'/customers/' + self.config.get('VDP','vtaCustomerId')+ '/notifications';
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.notification_subscription_request, 'Notification Subscriptions Test', 'post', {'ServiceId' : self.config.get('VDP','vtaServiceId')})
        self.assertEqual(str(response.status_code) ,"201" ,"Notification Subscriptions Test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:29,代码来源:test_manage_notifications.py

示例2: TestMerchantLocatorAPI

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestMerchantLocatorAPI(unittest.TestCase):

    def setUp(self):
        date = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3]
        self.visa_api_client = VisaAPIClient()
        self.locator_request = json.loads('''{
                "header": {
                    "messageDateTime": "''' + date + '''",
                    "requestMessageId": "VCO_GMR_001"
                },
                "searchAttrList": {
                    "merchantName": "ALOHA CAFE",
                    "merchantCountryCode": "840",
                    "latitude": "34.047616",
                    "longitude": "-118.239079",
                    "distance": "100",
                    "distanceUnit": "M"
                },
                "responseAttrList": [
                "GNLOCATOR"
                ],
                "searchOptions": {
                    "maxRecords": "2",
                    "matchIndicators": "true",
                    "matchScore": "true"
                }
            }''')
    
    def test_merchant_locator_API(self):
        base_uri = 'merchantlocator/'
        resource_path = 'v1/locator'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.locator_request, 'Merchant Locator Test', 'post')
        self.assertEqual(str(response.status_code) ,"200" ,"Merchant locator test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:36,代码来源:test_merchant_locator.py

示例3: TestVisaTravelNotificationService

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestVisaTravelNotificationService(unittest.TestCase):

    config = parser.ConfigParser()
    config_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)),'..','configuration.ini'))
    config.read(config_path)
    
    def setUp(self):
        departureDate = datetime.datetime.now().strftime("%Y-%m-%d")
        returnDate = datetime.datetime.strptime(departureDate, "%Y-%m-%d") + datetime.timedelta(days=10)
        self.visa_api_client = VisaAPIClient()
        self.travel_notification_request = json.loads('''{
            "addTravelItinerary": {
            "returnDate": "''' + returnDate.strftime("%Y-%m-%d") + '''",
            "departureDate": "''' + departureDate +'''",
            "destinations": [
                              {
                                "state": "CA",
                                "country": "840"
                              }
                            ],
            "primaryAccountNumbers": ''' + self.config.get('VDP','tnsCardNumbers') + ''',
            "userId": "Rajesh",
            "partnerBid": "''' + self.config.get('VDP','tnsPartnerBid') + '''"
            }
        }''')
    
    def test_add_travel_itenary(self):
        base_uri = 'travelnotificationservice/'
        resource_path = 'v1/travelnotification/itinerary'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.travel_notification_request, 'Add Travel Itenary Test','post')
        self.assertEqual(str(response.status_code) ,"200" ,"Add travel itenary test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:34,代码来源:test_visa_travel_notification.py

示例4: TestCardEnrollement

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestCardEnrollement(unittest.TestCase):

    config = parser.ConfigParser()
    config_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)),'..','configuration.ini'))
    config.read(config_path)
    
    def setUp(self):
        self.visa_api_client = VisaAPIClient()
        self.enrollement_data = json.loads('''{
                    "enrollmentMessageType": "enroll",
                    "enrollmentRequest": {
                        "cardholderMobileNumber": "0016504323000",
                        "clientMessageID": "''' + self.config.get('VDP','mlcClientMessageID') +'''",
                        "deviceId": "''' + self.config.get('VDP','mlcDeviceId') +'''",
                        "issuerId": "''' + self.config.get('VDP','mlcIssuerId') +'''",
                        "primaryAccountNumber": "''' + self.config.get('VDP','mlcPrimaryAccountNumber') +'''"
                    }
                }''')
    
    def test_enrollement(self):
        base_uri = 'mlc/'
        resource_path = 'enrollment/v1/enrollments'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.enrollement_data, 'MLC Card Enrollement Test', 'post')
        self.assertEqual(str(response.status_code) ,"200" ,"MLC enrollment's test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:27,代码来源:test_card_enrollment.py

示例5: TestReplaceCard

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestReplaceCard(unittest.TestCase):
    
    config = parser.ConfigParser()
    config_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)),'..','configuration.ini'))
    config.read(config_path)
    
    def setUp(self):
        self.visa_api_client = VisaAPIClient()
        self.replace_cards_request = json.loads('''{
            "communityCode": "''' + self.config.get('VDP','vtaCommunityCode') + '''",
            "newCard": {
                "address": '''+ self.config.get('VDP','vtaReplaceCardNewAddress') + ''',
                "billCycleDay": "22",
                "bin": null,
                "cardEnrollmentDate": "2016-06-10T08:36:59+00:00",
                "cardExpiryDate": "''' + self.config.get('VDP','vtaReplaceCardExpiryDate') + '''",
                "cardNickName": "My Visa 3",
                "cardNumber": "''' + self.config.get('VDP','vtaReplaceCardNumber') + '''",
                "cardSecurityCode": "''' + self.config.get('VDP','vtaReplaceCardSecurityCode') + '''",
                "isActive": true,
                "lastFour": "''' + self.config.get('VDP','vtaReplaceCardLastFour') + '''",
                "nameOnCard": "Mradul",
                "paused": false,
                "portfolioNum": "''' + self.config.get('VDP','vtaPortfolioNumber') + '''",
                "previousCardNumber": null,
                "productId": null,
                "productIdDescription": "Credit",
                "productType": "Credit",
                "productTypeExtendedCode": "123",
                "rpin": null
            },
            "oldCard": {
                "address": '''+ self.config.get('VDP','vtaCreateCustomerAddress') + ''',
                "billCycleDay": "22",
                "bin": null,
                "cardEnrollmentDate": "2016-06-10T08:36:59+00:00",
                "cardExpiryDate": "''' + self.config.get('VDP','vtaCreateCustomerCardExpiryDate') + '''",
                "cardNickName": "My Visa 3",
                "cardNumber": "''' + self.config.get('VDP','vtaCreateCustomerCardNumber')+ '''",
                "cardSecurityCode": "''' + self.config.get('VDP','vtaCreateCustomerCardSecurityCode') + '''",
            "isActive": true,
            "lastFour": "'''+ self.config.get('VDP','vtaCreateCustomerLastFour') + '''",
            "nameOnCard": "Mradul",
            "paused": false,
            "portfolioNum": "''' + self.config.get('VDP','vtaPortfolioNumber') + '''",
            "previousCardNumber": null,
            "productId": null,
            "productIdDescription": "Credit",
            "productType": "Credit",
            "productTypeExtendedCode": "123",
            "rpin": null
          }
}''')
    
    def test_get_communities(self):
        base_uri = 'vta/'
        resource_path = 'v3/communities/' +  self.config.get('VDP','vtaCommunityCode') + '/cards'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.replace_cards_request, 'Replace a card test', 'post', {'ServiceId' : self.config.get('VDP','vtaServiceId')})
        self.assertEqual(str(response.status_code) ,"201" ,"Replace a card test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:62,代码来源:test_replace_card.py

示例6: TestForeignExchange

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestForeignExchange(unittest.TestCase):

    def setUp(self):
        self.visa_api_client = VisaAPIClient()
        self.foreign_exchange_request = json.loads('''{
          "acquirerCountryCode": "840",
          "acquiringBin": "408999",
          "cardAcceptor": {
            "address": {
              "city": "San Francisco",
              "country": "USA",
              "county": "San Mateo",
              "state": "CA",
              "zipCode": "94404"
            },
            "idCode": "ABCD1234ABCD123",
            "name": "ABCD",
            "terminalId": "ABCD1234"
          },
          "destinationCurrencyCode": "826",
          "markUpRate": "1",
          "retrievalReferenceNumber": "201010101031",
          "sourceAmount": "100.00",
          "sourceCurrencyCode": "840",
          "systemsTraceAuditNumber": "350421"
        }''')
    
    def test_foreign_exchange(self):
        base_uri = 'forexrates/'
        resource_path = 'v1/foreignexchangerates'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.foreign_exchange_request, 'Foreign Exchange call', 'post')
        self.assertEqual(str(response.status_code) ,"200" ,"Foreign exchange test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:35,代码来源:test_foreign_exchange.py

示例7: TestProgramAdministration

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestProgramAdministration(unittest.TestCase):
    
    def setUp(self):
        self.visa_api_client = VisaAPIClient()
    
    def test_retrieve_transaction(self):
        base_uri = 'vctc/'
        resource_path = 'programadmin/v1/configuration/transactiontypecontrols'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, '', 'Retrieve Transaction Type Control call', 'get')
        self.assertEqual(str(response.status_code) ,"200" ,"Retrieve transaction type control test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:13,代码来源:test_program_administration.py

示例8: TestValidationAPI

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestValidationAPI(unittest.TestCase):
    
    def setUp(self):
        self.visa_api_client = VisaAPIClient()

    def test_retrieve_list_recent_decision_records(self):
        base_uri = 'vctc/';
        resource_path = 'validation/v1/decisions/history';
        query_string = '?limit=1&page=1'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path + query_string, '', 'Retrieve List of Recent Decision Records call', 'get')
        self.assertEqual(str(response.status_code) ,"200" ,"Retrieve List of Recent Decision Records test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:14,代码来源:test_validation.py

示例9: TestGeneralAttributesEnquiry

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestGeneralAttributesEnquiry(unittest.TestCase):

    def setUp(self):
        self.visa_api_client = VisaAPIClient()
        self.general_attribute_inquiry = json.loads('''{
          "primaryAccountNumber": "4465390000029077"
        }''')
    
    def test_general_attributes_inquiry(self):
        base_uri = 'paai/'
        resource_path = 'generalattinq/v1/cardattributes/generalinquiry'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.general_attribute_inquiry, 'General Attributes Inquiry call', 'post')
        self.assertEqual(str(response.status_code) ,"200" ,"General attributes inquiry test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:16,代码来源:test_general_attributes_inquiry.py

示例10: TestManageCommunities

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestManageCommunities(unittest.TestCase):
    
    config = parser.ConfigParser()
    config_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)),'..','configuration.ini'))
    config.read(config_path)
    
    def setUp(self):
        self.visa_api_client = VisaAPIClient()
    
    def test_get_communities(self):
        base_uri = 'vta/'
        resource_path = 'v3/communities'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, '', 'Get Communities Test', 'get', {'ServiceId' : self.config.get('VDP','vtaServiceId')})
        self.assertEqual(str(response.status_code) ,"200" ,"Get Communities Test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:17,代码来源:test_manage_communities.py

示例11: TestLocationUpdate

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestLocationUpdate(unittest.TestCase):

    config = parser.ConfigParser()
    config_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), "..", "configuration.ini"))
    config.read(config_path)

    def setUp(self):
        date = datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S.%fZ")
        self.visa_api_client = VisaAPIClient()
        self.location_update = json.loads(
            '''{
                                    "accuracy": "5000",
                                    "cloudNotificationKey": "03e3ae03-a627-4241-bad6-58f811c18e46",
                                    "cloudNotificationProvider": "1",
                                    "deviceId": "'''
            + self.config.get("VDP", "mlcDeviceId")
            + '''",
                                    "deviceLocationDateTime": "'''
            + date
            + '''",
                                    "geoLocationCoordinate": {
                                        "latitude": "37.558546",
                                        "longitude": "-122.271079"
                                    },
                                    "header": {
                                                "messageDateTime": "'''
            + date
            + '''",
                                                "messageId": "'''
            + self.config.get("VDP", "mlcMessageId")
            + '''"
                                            },
                                    "issuerId": "'''
            + self.config.get("VDP", "mlcIssuerId")
            + """",
                                    "provider": "1",
                                    "source": "2"
                                }"""
        )

    def test_location_update(self):
        base_uri = "mlc/"
        resource_path = "locationupdate/v1/locations"
        response = self.visa_api_client.do_mutual_auth_request(
            base_uri + resource_path, self.location_update, "Location Update Test", "post"
        )
        self.assertEqual(str(response.status_code), "200", "Location update test failed")
        pass
开发者ID:visa,项目名称:SampleCode,代码行数:50,代码来源:test_location_update.py

示例12: TestMerchantSearchAPI

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestMerchantSearchAPI(unittest.TestCase):

    def setUp(self):
        date = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3]
        self.visa_api_client = VisaAPIClient()
        self.locator_request = json.loads('''{
                         "header": {
                             "messageDateTime": "'''+ date  +'''",
                             "requestMessageId": "Request_001",
                             "startIndex": "0"
                         },
                      "searchAttrList": {
                         "merchantName": "cmu edctn materials cntr",
                         "merchantStreetAddress": "802 industrial dr",
                         "merchantCity": "Mount Pleasant",
                         "merchantState": "MI",
                         "merchantPostalCode": "48858",
                         "merchantCountryCode": "840",
                         "merchantPhoneNumber": "19897747123",
                         "merchantUrl": "http://www.emc.cmich.edu",
                         "businessRegistrationId": "386004447",
                         "acquirerCardAcceptorId": "424295031886",
                         "acquiringBin": "476197"
                      },
                      "responseAttrList": [
                         "GNBANKA"
                      ],
                      "searchOptions": {
                         "maxRecords": "5",
                         "matchIndicators": "true",
                         "matchScore": "true",
                         "proximity": [
                           "merchantName"
                        ],
                         "wildCard": [
                           "merchantName"
                        ]
                      }
                    }''')
    
    def test_merchant_search_API(self):
        base_uri = 'merchantsearch/'
        resource_path = 'v1/search'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.locator_request, 'Merchant Search Test', 'post')
        self.assertEqual(str(response.status_code) ,"200" ,"Merchant search test failed")
        pass
开发者ID:KrishnaNellutla,项目名称:SampleCode,代码行数:48,代码来源:test_merchant_search.py

示例13: TestFundsTransfer

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestFundsTransfer(unittest.TestCase):

    def setUp(self):
        date = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S")
        self.visa_api_client = VisaAPIClient()
        self.push_funds_request = json.loads('''{
            "systemsTraceAuditNumber": 350420,
            "retrievalReferenceNumber": "401010350420",
            "localTransactionDateTime": "'''+ date + '''",
            "acquiringBin": 409999,
            "acquirerCountryCode": "101",
            "senderAccountNumber": "1234567890123456",
            "transactionCurrencyCode": "USD",
            "senderName": "John Smith",
            "senderCountryCode": "USA",
            "senderAddress": "44 Market St.",
            "senderCity": "San Francisco",
            "senderStateCode": "CA",
            "recipientName": "Adam Smith",
            "recipientPrimaryAccountNumber": "4957030420210454",
            "amount": "112.00",
            "businessApplicationId": "AA",
            "transactionIdentifier": 234234322342343,
            "merchantCategoryCode": 6012,
            "sourceOfFundsCode": "03",
            "cardAcceptor": {
              "name": "John Smith",
              "terminalId": "13655392",
              "idCode": "VMT200911026070",
              "address": {
                "state": "CA",
                "county": "081",
                "country": "USA",
                "zipCode": "94105"
              }
            },
            "feeProgramIndicator": "123"
        }''')
    
    def test_push_funds_transactions(self):
        base_uri = 'visadirect/'
        resource_path = 'fundstransfer/v1/pushfundstransactions'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.push_funds_request, 'Push Funds Transaction Test','post')
        self.assertEqual(str(response.status_code) ,"200" ,"Push Funds Transaction test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:47,代码来源:test_funds_transfer.py

示例14: TestFundsTransferAttributes

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestFundsTransferAttributes(unittest.TestCase):

    def setUp(self):
        self.visa_api_client = VisaAPIClient()
        self.funds_transfer_inquiry = json.loads('''{
          "acquirerCountryCode": "840",
          "acquiringBin": "408999",
          "primaryAccountNumber": "4957030420210512",
          "retrievalReferenceNumber": "330000550000",
          "systemsTraceAuditNumber": "451006"
        }''')
    
    def test_funds_transfer_inquiry(self):
        base_uri = 'paai/'
        resource_path = 'fundstransferattinq/v1/cardattributes/fundstransferinquiry'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.funds_transfer_inquiry, 'Funds Transfer Inquiry call', 'post')
        self.assertEqual(str(response.status_code) ,"200" ,"Funds transfer inquiry test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:20,代码来源:test_funds_transfer_attribute.py

示例15: TestConsumerRules

# 需要导入模块: from visa.helpers.visa_api_client import VisaAPIClient [as 别名]
# 或者: from visa.helpers.visa_api_client.VisaAPIClient import do_mutual_auth_request [as 别名]
class TestConsumerRules(unittest.TestCase):

    config = parser.ConfigParser()
    config_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)),'..','configuration.ini'))
    config.read(config_path)
    
    def setUp(self):
        self.visa_api_client = VisaAPIClient()
        self.card_register_data = json.loads('''{
          "primaryAccountNumber": ''' + self.config.get('VDP','vctcTestPan') +'''
        }''')
    
    def test_register_a_card(self):
        base_uri = 'vctc/'
        resource_path = 'customerrules/v1/consumertransactioncontrols'
        response = self.visa_api_client.do_mutual_auth_request(base_uri + resource_path, self.card_register_data, 'Register a card call', 'post')
        self.assertTrue((str(response.status_code) == "200" or str(response.status_code) == "201"),"Register a card test failed")
        pass
开发者ID:AravindaM,项目名称:SampleCode,代码行数:20,代码来源:test_consumer_rules.py


注:本文中的visa.helpers.visa_api_client.VisaAPIClient.do_mutual_auth_request方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。