summaryrefslogtreecommitdiff
path: root/selftest/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-04 16:01:18 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-04 18:02:07 +0100
commit3a6e4cf2b1a88f3ab6631e75ca2e1be5273b2f8f (patch)
tree11f586290b2e3bf9729fa7cdc6189f54b2fcefde /selftest/tests
parentcd9cf4797204f307defda7482360580558c5ee44 (diff)
downloadsamba-3a6e4cf2b1a88f3ab6631e75ca2e1be5273b2f8f.tar.gz
samba-3a6e4cf2b1a88f3ab6631e75ca2e1be5273b2f8f.tar.bz2
samba-3a6e4cf2b1a88f3ab6631e75ca2e1be5273b2f8f.zip
selftest.target: Add NoneTarget.
Diffstat (limited to 'selftest/tests')
-rw-r--r--selftest/tests/test_target.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/selftest/tests/test_target.py b/selftest/tests/test_target.py
index 0a5d1c4310..139ed741d0 100644
--- a/selftest/tests/test_target.py
+++ b/selftest/tests/test_target.py
@@ -24,7 +24,9 @@ from selftest.target import (
EnvironmentDown,
EnvironmentManager,
NoneEnvironment,
+ NoneTarget,
Target,
+ UnsupportedEnvironment,
)
import unittest
@@ -67,6 +69,17 @@ class NoneEnvironmentTests(unittest.TestCase):
self.assertEquals("", self.env.get_log())
+class NoneTargetTests(unittest.TestCase):
+
+ def setUp(self):
+ super(NoneTargetTests, self).setUp()
+ self.target = NoneTarget()
+
+ def test_setup_env(self):
+ self.assertRaises(UnsupportedEnvironment, self.target.setup_env,
+ "something", "prefx")
+
+
class EnvironmentManagerTests(unittest.TestCase):
def setUp(self):