Vehicle-Anti-Theft-Face-Rec.../venv/Lib/site-packages/nbconvert/utils/tests/test_version.py

13 lines
429 B
Python
Raw Normal View History

2020-11-12 16:05:57 +00:00
from ..version import check_version
def test_check_version():
"""Test the behaviour of check_versionself.
This is mostly used to make sure the pandoc version is appropriate for the library.
"""
assert check_version('1.19.2.4', '1.12.1')
assert check_version('2.2.3.2', '1.12.1')
assert check_version('1.19.2.4', '1.12.1', max_v='2.0')
assert not check_version('2.2.3.2', '1.12.1', max_v='2.0')