Correct docstring on Version(0, 0) test

If no max or min is set, no Version should match, including
0.0. The test was already correct, but the associated
docstring was a pasto.

Change-Id: I925a9df3b044b1f581b2c62db1bda9ace0a5cc47
This commit is contained in:
Chris Dent 2018-03-21 14:35:39 +00:00
parent e93d35f10d
commit 6a379d9783

View File

@ -57,7 +57,9 @@ class TestVersion(testtools.TestCase):
self.assertTrue(version.matches()) self.assertTrue(version.matches())
def test_version_zero_no_defaults(self): def test_version_zero_no_defaults(self):
"""If a version is '0.0' we want to it be able to match.""" """Any version, even 0.0, should never match without a min
and max being set.
"""
version = microversion_parse.Version(0, 0) version = microversion_parse.Version(0, 0)
self.assertFalse(version.matches()) self.assertFalse(version.matches())