Esempio n. 1
0
    def test_location_service_code_not_equals_product_code2(self):
        self.init_env("{}")
        self.client._endpoint_resolver = self._endpoint_resolver

        with patch.object(self._location_service_endpoint_resolver,
                          '_call_location_service',
                          wraps=self._location_service_endpoint_resolver.
                          _call_location_service) as monkey:
            for i in range(3):
                request = DescribeApisRequest()
                response = self.client.do_action_with_exception(request)

        self.assertEqual(1, monkey.call_count)

        self.init_env()
        self.client._endpoint_resolver = self._endpoint_resolver
Esempio n. 2
0
 def test_location_service_code_not_equals_product_code(self):
     request = DescribeApisRequest()
     response = self.client.do_action_with_exception(request)