'L{SimpleResolverComplexifier} translates an unknown error result from
L{IResolverSimple.resolveHostName} into an empty result and a logged
error.'

def test_error(self):

    simple = SillyResolverSimple()
    complex = SimpleResolverComplexifier(simple)
    receiver = ResultHolder(self)
    self.assertEqual(receiver._started, False)
    complex.resolveHostName(receiver, u'example.com')
    self.assertEqual(receiver._started, True)
    self.assertEqual(receiver._ended, False)
    self.assertEqual(receiver._addresses, [])
    simple._requests[0].errback(ZeroDivisionError('zow'))
    self.assertEqual(len(self.flushLoggedErrors(ZeroDivisionError)), 1)
    self.assertEqual(receiver._ended, True)
    self.assertEqual(receiver._addresses, [])
