'If a reactor instance is supplied to L{client.Resolver}
L{client.Resolver._connectedProtocol} should pass that reactor
to L{twisted.names.dns.DNSDatagramProtocol}.'

def test_resolverUsesOnlyParameterizedReactor(self):

    reactor = test_util.MemoryReactor()
    resolver = client.Resolver(resolv=self.mktemp(), reactor=reactor)
    proto = resolver._connectedProtocol()
    self.assertIs(proto._reactor, reactor)
