diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-07 12:23:17 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-07 12:23:17 +0000 |
commit | 6a4b25e739797ee4e7d9d7933269c0865feba28f (patch) | |
tree | 89611a49e6c275204481cc5c14bced2735774cd5 | |
parent | 8419f885c9a78a46118addda204f063e8bb65442 (diff) | |
download | import-6a4b25e739797ee4e7d9d7933269c0865feba28f.tar.gz |
add reverse check for test_bounds
-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 2a060b9..26fab5e 100755 --- a/exts/pip_find_deps_tests.py +++ b/exts/pip_find_deps_tests.py @@ -93,13 +93,16 @@ class ConflictDetectionTests(unittest.TestCase): 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'))) + # ('<', '0.1') conflicts with ('>', '0.1') self.run_conflict_test(requirements, [expected_conflict]) + # ('>', '0.1') conflicts with ('<', '0.1') + self.run_conflict_test(reverse(requirements), [reverse(expected_conflict)]) + if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase(ConflictDetectionTests) - unittest.TextTestRunner(verbosity=2).run(suite)
\ No newline at end of file + unittest.TextTestRunner(verbosity=2).run(suite) |