diff options
Diffstat (limited to 'tests/test_wrapper.py')
-rw-r--r-- | tests/test_wrapper.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_wrapper.py b/tests/test_wrapper.py index 069a5c3b..d7e5800f 100644 --- a/tests/test_wrapper.py +++ b/tests/test_wrapper.py | |||
@@ -26,6 +26,7 @@ import tempfile | |||
26 | import unittest | 26 | import unittest |
27 | 27 | ||
28 | import git_command | 28 | import git_command |
29 | import main | ||
29 | import platform_utils | 30 | import platform_utils |
30 | from pyversion import is_python3 | 31 | from pyversion import is_python3 |
31 | import wrapper | 32 | import wrapper |
@@ -83,6 +84,16 @@ class RepoWrapperUnitTest(RepoWrapperTestCase): | |||
83 | self.assertEqual('', stderr.getvalue()) | 84 | self.assertEqual('', stderr.getvalue()) |
84 | self.assertIn('repo launcher version', stdout.getvalue()) | 85 | self.assertIn('repo launcher version', stdout.getvalue()) |
85 | 86 | ||
87 | def test_python_constraints(self): | ||
88 | """The launcher should never require newer than main.py.""" | ||
89 | self.assertGreaterEqual(main.MIN_PYTHON_VERSION_HARD, | ||
90 | wrapper.MIN_PYTHON_VERSION_HARD) | ||
91 | self.assertGreaterEqual(main.MIN_PYTHON_VERSION_SOFT, | ||
92 | wrapper.MIN_PYTHON_VERSION_SOFT) | ||
93 | # Make sure the versions are themselves in sync. | ||
94 | self.assertGreaterEqual(wrapper.MIN_PYTHON_VERSION_SOFT, | ||
95 | wrapper.MIN_PYTHON_VERSION_HARD) | ||
96 | |||
86 | def test_init_parser(self): | 97 | def test_init_parser(self): |
87 | """Make sure 'init' GetParser works.""" | 98 | """Make sure 'init' GetParser works.""" |
88 | parser = self.wrapper.GetParser(gitc_init=False) | 99 | parser = self.wrapper.GetParser(gitc_init=False) |