def test_parse_installed_version_without_quotes(): assert _parse_installed_version( version_output=TEST_SHORT_VERSION_OUTPUT, version_field='Server Version:') == TEST_VERSION
def test_parse_installed_version_failure(): with pytest.raises(ValueError): _parse_installed_version(version_output='version: 0.0.1', version_field='SemVer:')
def test_parse_installed_version(): assert _parse_installed_version(version_output=TEST_VERSION_OUTPUT, version_field='SemVer:') == TEST_VERSION