diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-03-04 02:30:42 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-03-04 18:02:06 +0100 |
commit | 0d50c4cf3c4bc8ca406cad4f6c30c0326ee19bad (patch) | |
tree | 02c80b3995f1992ba9d297c3591bd5e0af5fb487 /selftest | |
parent | e7633d86c03c57b6fc8a4e5b4a26f7e9159c6ec7 (diff) | |
download | samba-0d50c4cf3c4bc8ca406cad4f6c30c0326ee19bad.tar.gz samba-0d50c4cf3c4bc8ca406cad4f6c30c0326ee19bad.tar.bz2 samba-0d50c4cf3c4bc8ca406cad4f6c30c0326ee19bad.zip |
selftest.target: Add tests for getlog_env.
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/tests/test_target.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/selftest/tests/test_target.py b/selftest/tests/test_target.py index 0abc79b6bb..c75f0cd8f6 100644 --- a/selftest/tests/test_target.py +++ b/selftest/tests/test_target.py @@ -71,3 +71,11 @@ class EnvironmentManagerTests(unittest.TestCase): env.check_ret = False self.assertFalse(env.check()) self.assertFalse(self.mgr.check_env("something")) + + def test_get_log(self): + env = self.mgr.setup_env("something", "prefix") + self.assertEquals("", env.get_log()) + self.assertEquals("", self.mgr.getlog_env("something")) + env.log_ret = 'bla' + self.assertEquals('bla', env.get_log()) + self.assertEquals('bla', self.mgr.getlog_env("something")) |