1import mock 2 3from pkg_resources import evaluate_marker 4 5 6@mock.patch('platform.python_version', return_value='2.7.10') 7def test_ordering(python_version_mock): 8 assert evaluate_marker("python_full_version > '2.7.3'") is True 9
1import mock 2 3from pkg_resources import evaluate_marker 4 5 6@mock.patch('platform.python_version', return_value='2.7.10') 7def test_ordering(python_version_mock): 8 assert evaluate_marker("python_full_version > '2.7.3'") is True 9