diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-05-15 18:28:02 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-05-15 18:28:02 +0200 |
commit | 8e541f24baa9cfeab8aa49a70c52ea477a9f7747 (patch) | |
tree | 0673a17ae2545c718e6d190c4f6be4452580155d /tests/test_parsing.py | |
parent | 6713f3071764e1438fb7e07cf51bacde8fd97394 (diff) | |
download | semantic-version-8e541f24baa9cfeab8aa49a70c52ea477a9f7747.tar.gz |
s/SemanticVersion/Version/
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'tests/test_parsing.py')
-rwxr-xr-x | tests/test_parsing.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py index b59b8a3..bf8a461 100755 --- a/tests/test_parsing.py +++ b/tests/test_parsing.py @@ -27,11 +27,11 @@ class ParsingTestCase(unittest.TestCase): def test_invalid(self): for invalid in self.invalids: - self.assertRaises(ValueError, semantic_version.SemanticVersion, invalid) + self.assertRaises(ValueError, semantic_version.Version, invalid) def test_simple(self): for valid in self.valids: - version = semantic_version.SemanticVersion(valid) + version = semantic_version.Version(valid) self.assertEqual(valid, str(version)) @@ -52,9 +52,9 @@ class ComparisonTestCase(unittest.TestCase): def test_comparisons(self): for i, first in enumerate(self.order): - first_ver = semantic_version.SemanticVersion(first) + first_ver = semantic_version.Version(first) for j, second in enumerate(self.order): - second_ver = semantic_version.SemanticVersion(second) + second_ver = semantic_version.Version(second) if i < j: self.assertTrue(first_ver < second_ver, '%r !< %r' % (first_ver, second_ver)) elif i == j: |