def test_discoverAuthorityDeprecated(self):
        discoverAuthority(
            'example.com', ['10.0.0.1'], p=StubDNSDatagramProtocol())

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

    # discoverAuthority is implemented in terms of deprecated functions,
    # too.  Ignore those.
Return an Elasticsearch query for the user's NIPSA'd annotations.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/names/test/test_rootresolve.py/DiscoveryToolsTests.test_discoverAuthorityDeprecated--crossover with--dataset/ETHPy150Open hypothesis/h/h/nipsa/search.py/nipsad_annotations