'Recursive DNS lookups, if enabled, should be a last-resort option.
Any other lookup method (cache, local lookup, etc.) should take
precedence over recursive lookups'

def test_recursiveConfiguration(self):

    options = Options()
    options.parseOptions(['--hosts-file', 'hosts.txt', '--recursive'])
    (ca, cl) = _buildResolvers(options)
    for x in cl:
        if isinstance(x, ResolverChain):
            recurser = x.resolvers[(-1)]
            if isinstance(recurser, Resolver):
                recurser._parseCall.cancel()
    if (platform.getType() != 'posix'):
        from twisted.internet import reactor
        for x in reactor._newTimedCalls:
            if _PY3:
                self.assertEqual(x.func.__func__, ThreadedResolver._cleanup)
            else:
                self.assertEqual(x.func.__func__, ThreadedResolver._cleanup.__func__)
            x.cancel()
    self.assertIsInstance(cl[(-1)], ResolverChain)
