def METHOD_NAME(self):
    """
    Issuing a request with a URI whose host contains a carriage
    return and line feed fails with a L{ValueError}.
    """
    with self.assertRaises(ValueError) as cm:
        uri = b"http://twisted\r\n.invalid/path"
        self.attemptRequestWithMaliciousURI(uri)
    self.assertRegex(str(cm.exception), "^Invalid URI")