diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-07 12:30:21 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-07 12:30:21 +0000 |
commit | 177f643bf6e8f57bf27b47ce89c08ac486221b4e (patch) | |
tree | 942cbc2ac67a51ef7802ff8ff6abec2329a10107 /exts | |
parent | d86e0a2d80cf66c4b0e8747da30345336ad83a8a (diff) | |
download | import-177f643bf6e8f57bf27b47ce89c08ac486221b4e.tar.gz |
Add test_eqs_bounds_two_versions
Diffstat (limited to 'exts')
-rwxr-xr-x | exts/pip_find_deps_tests.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/exts/pip_find_deps_tests.py b/exts/pip_find_deps_tests.py index f4fa82b..74e064e 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.2) def test_eqs_two_different_versions(self): @@ -114,6 +113,14 @@ class ConflictDetectionTests(unittest.TestCase): # ('>', '0.2') conflicts with ('<', '0.1') self.run_conflict_test(reverse(requirements), [reverse(expected_conflict)]) + def test_eqs_bounds_two_versions(self): + requirements = list(parse_requirements(['a <= 0.1', 'a >= 0.2'])) + expected_conflict = (('<=', parse_version('0.1')), + ('>=', parse_version('0.2'))) + + # ('<=', 0.1) conflicts with ('>=', 0.2) + self.run_conflict_test(requirements, [expected_conflict]) + if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase(ConflictDetectionTests) unittest.TextTestRunner(verbosity=2).run(suite) |