def test_version_control__get_url_rev_and_auth__missing_plus(url): """ Test passing a URL to VersionControl.get_url_rev_and_auth() with a "+" missing from the scheme. """ with pytest.raises(ValueError) as excinfo: VersionControl.get_url_rev_and_auth(url) assert 'malformed VCS url' in str(excinfo.value)
def test_version_control__get_url_rev_and_auth__missing_plus(url): """ Test passing a URL to VersionControl.get_url_rev_and_auth() with a "+" missing from the scheme. """ with pytest.raises(ValueError) as excinfo: VersionControl.get_url_rev_and_auth(url) assert 'malformed VCS url' in str(excinfo.value)
def test_version_control__get_url_rev_and_auth(url, expected): """ Test the basic case of VersionControl.get_url_rev_and_auth(). """ actual = VersionControl.get_url_rev_and_auth(url) assert actual == expected
def test_version_control__get_url_rev_and_auth(url, expected): """ Test the basic case of VersionControl.get_url_rev_and_auth(). """ actual = VersionControl.get_url_rev_and_auth(url) assert actual == expected