diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-11 13:54:14 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-11 13:54:14 +0000 |
commit | 6ffe6b22124e8a4fe5265fc21f7eb6be919b4922 (patch) | |
tree | b674f47228789d303d20846684ad9198f2d8a36b /exts/pip_find_deps_tests.py | |
parent | ce97654b73111f299b37cfa80c4cf3696abdf26c (diff) | |
download | import-6ffe6b22124e8a4fe5265fc21f7eb6be919b4922.tar.gz |
add test for >= detection
Diffstat (limited to 'exts/pip_find_deps_tests.py')
-rwxr-xr-x | exts/pip_find_deps_tests.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/exts/pip_find_deps_tests.py b/exts/pip_find_deps_tests.py index 7b9c1be..f8bacb6 100755 --- a/exts/pip_find_deps_tests.py +++ b/exts/pip_find_deps_tests.py @@ -137,8 +137,11 @@ class ConflictDetectionTests(unittest.TestCase): self.run_test_no_conflict(requirements) self.run_test_no_conflict(reverse(requirements)) - #def test_greater_than_or_equal(self): - # requirements = list(parse_requirements(['a' >= ])) + def test_greater_than_or_equal(self): + requirements = list(parse_requirements(['a >= 0.1', 'a == 0.1'])) + + self.run_test_no_conflict(requirements) + self.run_test_no_conflict(reverse(requirements)) if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase(ConflictDetectionTests) |