'L{root.Resolver._resolverFactory} is supplied with C{reactor} and
C{servers} keyword arguments.'

def test_resolverFactoryOnlyExpectedArguments(self):

    dummyReactor = object()
    r = Resolver(hints=['192.0.2.101'], resolverFactory=raisingResolverFactory, reactor=dummyReactor)
    e = self.assertRaises(ResolverFactoryArguments, r.lookupAddress, 'example.com')
    self.assertEqual(((), {'reactor': dummyReactor, 'servers': [('192.0.2.101', 53)]}), (e.args, e.kwargs))
