You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Resources/WPy64-3720/python-3.7.2.amd64/Lib/site-packages/nbconvert/utils/tests/test_version.py

13 lines
429 B

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')