'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}.'

def test_resolveOneHost(self):

    receiver = ResultHolder(self)
    self.getter.addResultForHost(u'sample.example.com', ('4.3.2.1', 0))
    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, [IPv4Address('TCP', '4.3.2.1', 0)])
