summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2012-05-18 01:15:55 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2012-05-18 01:15:55 +0200
commit6b5a291dfab08f4ae2cd7ab8c63920477cb94458 (patch)
tree81d4314f9b57f98adc850f17967350eea1619e07
parent9acf9235bd70327edcce7cb1f9941539b7ef1e94 (diff)
downloadsemantic-version-6b5a291dfab08f4ae2cd7ab8c63920477cb94458.tar.gz
Ensure partial flag is kept around.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
-rwxr-xr-xtests/test_base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_base.py b/tests/test_base.py
index 54089dc..b1a07ed 100755
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -129,6 +129,7 @@ class VersionTestCase(unittest.TestCase):
actual_fields = (version.major, version.minor, version.patch,
version.prerelease, version.build)
self.assertEqual(expected_fields, actual_fields)
+ self.assertTrue(version.partial, "%r should have partial=True" % version)
def test_str_partials(self):
for text, fields in self.partial_versions.items():