From 9e88ed992c989bd0e4bfd92a1dd1cbe176407d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Sun, 16 Mar 2014 20:33:43 +0100 Subject: Accept '*' as a Spec (Closes #8). Spec('*') will match all valid Version objects. --- tests/test_match.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/test_match.py b/tests/test_match.py index fe75179..155a612 100755 --- a/tests/test_match.py +++ b/tests/test_match.py @@ -18,6 +18,7 @@ class MatchTestCase(unittest.TestCase): ] valid_specs = [ + '*', '==0.1.0', '<=0.1.1', '<0.1', @@ -28,6 +29,17 @@ class MatchTestCase(unittest.TestCase): ] matches = { + '*': [ + '0.1.1', + '0.1.1+build4.5', + '0.1.2-rc1', + '0.1.2-rc1.3', + '0.1.2-rc1.3.4', + '0.1.2+build42-12.2012-01-01.12h23', + '0.1.2-rc1.3-14.15+build.2012-01-01.11h34', + '0.2.0', + '1.0.0', + ], '==0.1.2': [ '0.1.2-rc1', '0.1.2-rc1.3.4', -- cgit v1.2.1