def test_unicodeAndBytes(self):
        """
        L{isIPv6Address} evaluates ASCII-encoded bytes as well as text.
        """
        self.assertTrue(isIPv6Address(b"fe80::2%1"))
        self.assertTrue(isIPv6Address(u"fe80::2%1"))
        self.assertFalse(isIPv6Address(u"\u4321"))
        self.assertFalse(isIPv6Address(u"hello%eth0"))
        self.assertFalse(isIPv6Address(b"hello%eth0"))

        L{isIPv6Address} evaluates ASCII-encoded bytes as well as text.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_abstract.py