summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-05 11:57:16 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-05 11:57:16 -0400
commit1a3ced3f45423d79e08ca7d861e8118e8618d3b2 (patch)
tree72dcb775987fff65471b6e27bc2c6313d8fcb409 /testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py
parentcc2e101cd6a1ef8c29ef2481c03274011f321a77 (diff)
downloadbcfg2-1a3ced3f45423d79e08ca7d861e8118e8618d3b2.tar.gz
bcfg2-1a3ced3f45423d79e08ca7d861e8118e8618d3b2.tar.bz2
bcfg2-1a3ced3f45423d79e08ca7d861e8118e8618d3b2.zip
wrote more detailed unit testing documentation
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py')
-rw-r--r--testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py
index 27d726fbb..8a1d5a949 100644
--- a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py
+++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py
@@ -17,11 +17,11 @@ while path != '/':
if os.path.basename(path) == "testsuite":
break
path = os.path.dirname(path)
-from common import XI_NAMESPACE, XI, call, builtins, skip, skipIf, \
- skipUnless, Bcfg2TestCase, patchIf, datastore, inPy3k, can_skip, re_type
+from common import *
from TestServer.TestPlugin.Testbase import TestPlugin, TestDebuggable
from TestServer.TestPlugin.Testinterfaces import TestGenerator
+
def tostring(el):
return lxml.etree.tostring(el, xml_declaration=False).decode('UTF-8')
@@ -155,12 +155,13 @@ class TestDirectoryBacked(Bcfg2TestCase):
# such thing as a bad event
def test_child_interface(self):
- # ensure that the child object has the correct interface
+ """ ensure that the child object has the correct interface """
self.assertTrue(hasattr(self.test_obj.__child__, "HandleEvent"))
def get_obj(self, fam=None):
if fam is None:
fam = Mock()
+
@patch("%s.%s.add_directory_monitor" % (self.test_obj.__module__,
self.test_obj.__name__),
Mock())