def METHOD_NAME(self):
    """
    Issuing a request with a URI whose host contains unprintable
    ASCII characters fails with a L{ValueError}.
    """
    for c in UNPRINTABLE_ASCII:
        uri = b"http://twisted%s.invalid/OK" % (bytearray([c]),)
        with self.assertRaises(ValueError) as cm:
            self.attemptRequestWithMaliciousURI(uri)
        self.assertRegex(str(cm.exception), "^Invalid URI")