From 6ffe6b22124e8a4fe5265fc21f7eb6be919b4922 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Tue, 11 Nov 2014 13:54:14 +0000 Subject: add test for >= detection --- exts/pip_find_deps_tests.py | 7 +++++-- 1 file 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) -- cgit v1.2.1