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