'A L{HostnameEndpoint} constructed with bytes will contain an
IDNA-decoded textual representation of those bytes.'

def test_idnaHostnameBytes(self):

    endpoint = endpoints.HostnameEndpoint(deterministicResolvingReactor(MemoryReactor(), ['127.0.0.1']), self.sampleIDNAText, 80)
    self.assertEqual(endpoint._hostBytes, self.sampleIDNABytes)
    self.assertEqual(endpoint._hostText, self.sampleIDNAText)
