mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
try and catch problems if we do something silly with our version in the future
This commit is contained in:
parent
ac37b9de6f
commit
536234c559
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue