def test_unicodeAndBytes(self):
        """
        L{isIPAddress} evaluates ASCII-encoded bytes as well as text.
        """
        self.assertFalse(isIPAddress(b'256.0.0.0'))
        self.assertFalse(isIPAddress(u'256.0.0.0'))
        self.assertTrue(isIPAddress(b'252.253.254.255'))
        self.assertTrue(isIPAddress(u'252.253.254.255'))

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