def METHOD_NAME(self):
    with mock_httpd(
        TESTSERVER_ADDRESS,
        [
            (
                {
                    "path": "/service?request=GetCapabilities&version=1.1.1&service=WMS",
                    "method": "GET",
                },
                {"status": "200", "body": ""},
            )
        ],
    ):
        with capture() as (out, err):
            with pytest.raises(SystemExit):
                wms_capabilities_command(self.args)
        error_msg = err.getvalue().rsplit("-" * 80, 1)[1].strip()
        assert error_msg.startswith("Could not parse the document")