diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-07 12:21:55 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-07 12:21:55 +0000 |
commit | 8419f885c9a78a46118addda204f063e8bb65442 (patch) | |
tree | 9aa404e897f36c6587538a8af522c69e367a3c9c | |
parent | d99490aed81aa86cbda216300d4928bcf1f5cd15 (diff) | |
download | import-8419f885c9a78a46118addda204f063e8bb65442.tar.gz |
add test_bounds
-rwxr-xr-x | exts/pip_find_deps_tests.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/exts/pip_find_deps_tests.py b/exts/pip_find_deps_tests.py index 4ff5cf7..2a060b9 100755 --- a/exts/pip_find_deps_tests.py +++ b/exts/pip_find_deps_tests.py @@ -28,7 +28,6 @@ class ConflictDetectionTests(unittest.TestCase): reqs = ['a == 0.1', 'a == 0.2'] self.test_requirements = parse_requirements(reqs) - # ('<', '0.1') conflicts with ('>', '0.1') # ('<=', 0.1) conflicts with ('>=', 0.2) # ('<', '0.1') conflicts with ('>', '0.2') @@ -93,6 +92,13 @@ class ConflictDetectionTests(unittest.TestCase): # ('!=', '0.1') conflicts with ('==', '0.1') self.run_conflict_test(reverse(requirements), [reverse(expected_conflict)]) + def test_bounds(self): + # ('<', '0.1') conflicts with ('>', '0.1') + requirements = list(parse_requirements(['a < 0.1', 'a > 0.1'])) + expected_conflict = (('<', parse_version('0.1')), + ('>', parse_version('0.1'))) + + self.run_conflict_test(requirements, [expected_conflict]) if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase(ConflictDetectionTests) |