def test_ignores_letter_versions(): """Ignore letters such as 1.8b. See ticket https://github.com/tmux-python/tmuxp/issues/55. In version 0.1.7 this is adjusted to use LooseVersion, in order to allow letters. """ result = has_minimum_version('1.9a') assert result result = has_minimum_version('1.8a') assert result # Should not throw assert type(has_version('1.8')) is bool assert type(has_version('1.8a')) is bool assert type(has_version('1.9a')) is bool
def test_ignores_letter_versions(): """Ignore letters such as 1.8b. See ticket https://github.com/tmux-python/tmuxp/issues/55. In version 0.1.7 this is adjusted to use LooseVersion, in order to allow letters. """ result = has_minimum_version('1.9a') assert result result = has_minimum_version('1.8a') assert result # Should not throw assert type(has_version('1.8')) is bool assert type(has_version('1.8a')) is bool assert type(has_version('1.9a')) is bool
def test_has_version(): assert has_version(str(get_version()))
def test_has_version(): assert has_version(str(get_version()))