Provide a SamDB TestCase-class that can be used by OpenChange.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 12 Feb 2009 15:00:11 +0000 (16:00 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 12 Feb 2009 15:00:11 +0000 (16:00 +0100)
source4/scripting/python/samba/tests/samdb.py

index e0bbf07ba8a00e4ae20bb27454928bf41a1b4725..d0b95cf542ec108294c6a18e3d6f6e1c620ebb98 100644 (file)
@@ -27,7 +27,13 @@ from unittest import TestCase
 import uuid
 from samba import param
 
+
 class SamDBTestCase(TestCaseInTempDir):
+    """Base-class for tests with a Sam Database.
+    
+    This is used by the Samba SamDB-tests, but e.g. also by the OpenChange
+    provisioning tests (which need a Sam).
+    """
 
     def setup_path(self, relpath):
         return os.path.join(find_setup_dir(), relpath)
@@ -82,6 +88,10 @@ class SamDBTestCase(TestCaseInTempDir):
             os.remove(os.path.join(self.tempdir, f))
         super(SamDBTestCase, self).tearDown()
 
+
+class SamDBTests(SamDBTestCase):
+    """Tests for the SamDB implementation."""
+
     def test_add_foreign(self):
         self.samdb.add_foreign(self.domaindn, "S-1-5-7", "Somedescription")