summaryrefslogtreecommitdiff
path: root/tests/test_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_base.py')
-rwxr-xr-xtests/test_base.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_base.py b/tests/test_base.py
index cd0b5f5..2c0830f 100755
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -606,6 +606,10 @@ class SpecTestCase(unittest.TestCase):
examples = {
'>=0.1.1,<0.1.2': ['>=0.1.1', '<0.1.2'],
'>=0.1.0,!=0.1.3-rc1,<0.1.3': ['>=0.1.0', '!=0.1.3-rc1', '<0.1.3'],
+ '=0.1.2': ['==0.1.2'],
+ '>=0.1.2': ['>=0.1.2'],
+ '^1.2.3': ['>=1.2.3', '<2.0.0'],
+ '~=1.2.3': ['>=1.2.3', '<1.3.0'],
}
def test_parsing(self):
@@ -617,9 +621,6 @@ class SpecTestCase(unittest.TestCase):
self.assertNotEqual(spec_list_text, spec_list)
self.assertCountEqual(specs, [str(spec) for spec in spec_list])
- for spec_text in specs:
- self.assertIn(str(base.SpecItem(spec_text)), repr(spec_list))
-
split_examples = {
('>=0.1.1', '<0.1.2', '!=0.1.1+build1'): ['>=0.1.1', '<0.1.2', '!=0.1.1+build1'],
('>=0.1.0', '!=0.1.3-rc1,<0.1.3'): ['>=0.1.0', '!=0.1.3-rc1', '<0.1.3'],