diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-05-15 00:23:21 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-05-15 00:23:21 +0200 |
commit | e57e90d86ec1edf21cde6f0a4da56ac6273fedbc (patch) | |
tree | 9096fb8fa4166de597decfc1ac8ce4df824e834c /tests/test_parsing.py | |
parent | 8a52f092379ae2f8c45de385cb13ab6a9f2d9017 (diff) | |
download | semantic-version-e57e90d86ec1edf21cde6f0a4da56ac6273fedbc.tar.gz |
Full coverage.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'tests/test_parsing.py')
-rwxr-xr-x | tests/test_parsing.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py index cdf21fc..b59b8a3 100755 --- a/tests/test_parsing.py +++ b/tests/test_parsing.py @@ -8,6 +8,9 @@ import semantic_version class ParsingTestCase(unittest.TestCase): invalids = [ + None, + '', + '0', '0.1', '0.1.4a', '0.1.1.1', @@ -58,7 +61,8 @@ class ComparisonTestCase(unittest.TestCase): self.assertTrue(first_ver == second_ver, '%r != %r' % (first_ver, second_ver)) else: self.assertTrue(first_ver > second_ver, '%r !> %r' % (first_ver, second_ver)) + self.assertEqual(cmp(i, j), semantic_version.compare(first, second)) -if __name__ == '__main__': +if __name__ == '__main__': # pragma: no cover unittest.main() |