'L{dns.Name} automatically encodes unicode domain name using C{idna}
encoding.'

def test_unicodeName(self):

    name = dns.Name(u'\xe9chec.example.org')
    self.assertIsInstance(name.name, bytes)
    self.assertEqual('xn--chec-9oa.example.org', name.name)
