def test_jenkins_server(self): assert parse_args(['-s', 'http://localhost:8080'])
def test_missing_jenkins_server(self): with pytest.raises(SystemExit): parse_args(['-s'])
def test_missing_job_name(self): with pytest.raises(SystemExit): parse_args(['-f', ice_setup_xml_file, '-n'])
def test_ice_setup(self): assert parse_args(['-f', ice_setup_xml_file, '-n', 'ice-setup'])
def test_missing_filename(self): with pytest.raises(SystemExit): parse_args(['-f'])