diff options
-rw-r--r-- | selftest/tests/test_target.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/selftest/tests/test_target.py b/selftest/tests/test_target.py index d29bd66cda..573b65db0a 100644 --- a/selftest/tests/test_target.py +++ b/selftest/tests/test_target.py @@ -64,6 +64,11 @@ class EnvironmentManagerTests(unittest.TestCase): self.assertEquals(env.name, "something") self.assertEquals(env.prefix, "prefix") + def test_setup_reuses(self): + env1 = self.mgr.setup_env("something", "prefix") + env2 = self.mgr.setup_env("something", "prefix") + self.assertIs(env1, env2) + def test_check(self): env = self.mgr.setup_env("something", "prefix") self.assertTrue(env.check()) |