try and catch problems if we do something silly with our version in the future

This commit is contained in:
Brad Warren 2016-05-23 13:59:16 -07:00
parent ac37b9de6f
commit 536234c559

View file

@ -10,6 +10,7 @@ import unittest
import mock
import six
import certbot
from certbot import errors
@ -360,6 +361,11 @@ class GetStrictVersionTest(unittest.TestCase):
self.assertTrue(self._call("0.0.0") < self._call("0.1.0"))
self.assertTrue(self._call("0.0.0") < self._call("1.0.0"))
def test_current_version(self):
current_version = self._call(certbot.__version__)
self.assertTrue(self._call("0.6.0") < current_version)
self.assertTrue(current_version < self._call("99.99.99"))
if __name__ == "__main__":
unittest.main() # pragma: no cover