def assertSubscriptionInTopic(self, subscription, topic_name):
        ret = self.run_function(
            'boto_sns.get_all_subscriptions_by_topic',
            name=topic_name
        )
        for _subscription in ret:
            try:
                self.assertDictContainsSubset(subscription, _subscription)
                return True
            except __HOLE__:
                continue
        raise self.failureException(
            'Subscription {0} not found in topic {1} subscriptions: {2}'
            .format(subscription, topic_name, ret)
        )
dataset/ETHPy150Open saltstack/salt/tests/integration/states/boto_sns.py/BotoSNSTest.assertSubscriptionInTopic