diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-02-12 16:00:11 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-02-12 16:00:11 +0100 |
commit | 762fdc8c5c2db304f3dc4536c19d69366d1399df (patch) | |
tree | 51acff028dd8afba733e8c8f7f33902b4ea5c80b /source4 | |
parent | 7048e75aeebc4d033c4e8425c364fe2e3e84f27b (diff) | |
download | samba-762fdc8c5c2db304f3dc4536c19d69366d1399df.tar.gz samba-762fdc8c5c2db304f3dc4536c19d69366d1399df.tar.bz2 samba-762fdc8c5c2db304f3dc4536c19d69366d1399df.zip |
Provide a SamDB TestCase-class that can be used by OpenChange.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/tests/samdb.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/tests/samdb.py b/source4/scripting/python/samba/tests/samdb.py index e0bbf07ba8..d0b95cf542 100644 --- a/source4/scripting/python/samba/tests/samdb.py +++ b/source4/scripting/python/samba/tests/samdb.py @@ -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") |