diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-03-04 02:31:32 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-03-04 18:02:06 +0100 |
commit | 75eb57cff5f041c3eea067a35647520481cd1516 (patch) | |
tree | 099cf43fbbd0693fc92e49184b60d8d57b550a4a /selftest/tests | |
parent | 0d50c4cf3c4bc8ca406cad4f6c30c0326ee19bad (diff) | |
download | samba-75eb57cff5f041c3eea067a35647520481cd1516.tar.gz samba-75eb57cff5f041c3eea067a35647520481cd1516.tar.bz2 samba-75eb57cff5f041c3eea067a35647520481cd1516.zip |
selftest.target: Add tests for get_running_env.
Diffstat (limited to 'selftest/tests')
-rw-r--r-- | selftest/tests/test_target.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/selftest/tests/test_target.py b/selftest/tests/test_target.py index c75f0cd8f6..d29bd66cda 100644 --- a/selftest/tests/test_target.py +++ b/selftest/tests/test_target.py @@ -79,3 +79,10 @@ class EnvironmentManagerTests(unittest.TestCase): env.log_ret = 'bla' self.assertEquals('bla', env.get_log()) self.assertEquals('bla', self.mgr.getlog_env("something")) + + def test_get_running_env(self): + env = self.mgr.setup_env("something", "prefix") + self.assertIs(env, self.mgr.get_running_env("something")) + + def test_get_running_env_nonexistant(self): + self.assertIs(None, self.mgr.get_running_env("something")) |