summaryrefslogtreecommitdiff
path: root/selftest/tests
diff options
context:
space:
mode:
Diffstat (limited to 'selftest/tests')
-rw-r--r--selftest/tests/test_target.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/selftest/tests/test_target.py b/selftest/tests/test_target.py
index 343de930cb..0abc79b6bb 100644
--- a/selftest/tests/test_target.py
+++ b/selftest/tests/test_target.py
@@ -63,3 +63,11 @@ class EnvironmentManagerTests(unittest.TestCase):
env = self.mgr.setup_env("something", "prefix")
self.assertEquals(env.name, "something")
self.assertEquals(env.prefix, "prefix")
+
+ def test_check(self):
+ env = self.mgr.setup_env("something", "prefix")
+ self.assertTrue(env.check())
+ self.assertTrue(self.mgr.check_env("something"))
+ env.check_ret = False
+ self.assertFalse(env.check())
+ self.assertFalse(self.mgr.check_env("something"))