'Verify that the given set of address types results in the given C{AF_}
constant being passed to C{getaddrinfo}.
@param addrTypes: iterable of L{IAddress} implementers
@param expectedAF: an C{AF_*} constant'

def _resolveOnlyTest(self, addrTypes, expectedAF):

    receiver = ResultHolder(self)
    resolution = self.resolver.resolveHostName(receiver, u'sample.example.com', addressTypes=addrTypes)
    self.assertIs(receiver._resolution, resolution)
    self.doThreadWork()
    self.doReactorWork()
    (host, port, family, socktype, proto, flags) = self.getter.calls[0]
    self.assertEqual(family, expectedAF)
