def METHOD_NAME(self):
    self.args = ["command_dummy", "--host", "http://foo.doesnotexist"]
    with capture() as (out, err):
        with pytest.raises(SystemExit):
            wms_capabilities_command(self.args)
    assert err.getvalue().startswith("ERROR:")
    self.args[2] = "/no/valid/url"
    with capture() as (out, err):
        with pytest.raises(SystemExit):
            wms_capabilities_command(self.args)
    assert err.getvalue().startswith("ERROR:")