def get_subscription(self, topic_name, subscription_name):
try:<EOL><INDENT>subscription = self.mgmt_client.get_subscription(topic_name, subscription_name)<EOL><DEDENT>except requests.exceptions.ConnectionError as e:<EOL><INDENT>raise ServiceBusConnectionError("<STR_LIT>".format(self.service_namespace), e)<EOL><DEDENT>except AzureServiceBusResourceNotFound:<EOL><INDENT>raise ServiceBusResourceNotFound("<STR_LIT>")<EOL><DEDENT>return SubscriptionClient.from_entity(<EOL>self._get_host(), topic_name, subscription,<EOL>shared_access_key_name=self.shared_access_key_name,<EOL>shared_access_key_value=self.shared_access_key_value,<EOL>loop=self.loop,<EOL>debug=self.debug)<EOL>
Get an async client for a subscription entity.

        :param topic_name: The name of the topic.
        :type topic_name: str
        :param subscription_name: The name of the subscription.
        :type subscription_name: str
        :rtype: ~azure.servicebus.aio.async_client.SubscriptionClient
        :raises: ~azure.servicebus.common.errors.ServiceBusConnectionError if the namespace is not found.
        :raises: ~azure.servicebus.common.errors.ServiceBusResourceNotFound if the subscription is not found.

        Example:
            .. literalinclude:: ../examples/async_examples/test_examples_async.py
                :start-after: [START get_async_subscription_client]
                :end-before: [END get_async_subscription_client]
                :language: python
                :dedent: 4
                :caption: Get a TopicClient for the specified topic.