'Resolving an individual hostname that results in one address from
getaddrinfo results in a single call each to C{resolutionBegan},
C{addressResolved}, and C{resolutionComplete}; C{addressResolved} will
receive an L{IPv6Address}.'

def test_resolveOneIPv6Host(self):

    receiver = ResultHolder(self)
    flowInfo = 1
    scopeID = 2
    self.getter.addResultForHost(u'sample.example.com', ('::1', 0, flowInfo, scopeID), family=AF_INET6)
    resolution = self.resolver.resolveHostName(receiver, u'sample.example.com')
    self.assertIs(receiver._resolution, resolution)
    self.assertEqual(receiver._started, True)
    self.assertEqual(receiver._ended, False)
    self.doThreadWork()
    self.doReactorWork()
    self.assertEqual(receiver._ended, True)
    self.assertEqual(receiver._addresses, [IPv6Address('TCP', '::1', 0, flowInfo, scopeID)])
