def test_discoveredAuthorityDeprecated(self):
        resolver = Resolver([])
        d = resolver.discoveredAuthority('127.0.0.1', 'example.com', IN, A, (0,))

        warnings = self.flushWarnings([
                self.test_discoveredAuthorityDeprecated])
        self.assertEquals(warnings[0]['category'], DeprecationWarning)
        self.assertEquals(
            warnings[0]['message'],
            'twisted.names.root.Resolver.discoveredAuthority is deprecated since '
            'Twisted 10.0.  Use twisted.names.client.Resolver directly, instead.')
        self.assertEquals(len(warnings), 1)

        # This will time out quickly, but we need to wait for it because there
        # are resources associated with.
        d.addErrback(lambda ignored: None)
        return d
Use this decorator on the dispatch method of a TemplateView subclass
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/names/test/test_rootresolve.py/RootResolverTests.test_discoveredAuthorityDeprecated--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/style/decorators.py/use_nvd3_v3