summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-29 18:14:15 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-29 12:21:04 -0600
commit6817c5d885a75a1af0e646827c3fa8220df8c7a5 (patch)
treed49c297734cf82bfc1fed1f8d742d13a885e4771 /source4/scripting/python/samba/tests
parentac65321a46e93dbcfb95a4ec6361e7451e12d64c (diff)
downloadsamba-6817c5d885a75a1af0e646827c3fa8220df8c7a5.tar.gz
samba-6817c5d885a75a1af0e646827c3fa8220df8c7a5.tar.xz
samba-6817c5d885a75a1af0e646827c3fa8220df8c7a5.zip
r26628: python: Add more documentation, simplify code in Samba3 module.
(This used to be commit 3c329ee73d9979236313c37e51750ec06b8dd69e)
Diffstat (limited to 'source4/scripting/python/samba/tests')
-rw-r--r--source4/scripting/python/samba/tests/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/tests/__init__.py b/source4/scripting/python/samba/tests/__init__.py
index 5e1ff87c2b..ad8a2524b5 100644
--- a/source4/scripting/python/samba/tests/__init__.py
+++ b/source4/scripting/python/samba/tests/__init__.py
@@ -17,6 +17,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
+"""Samba Python tests."""
+
import os
import ldb
import samba
@@ -24,11 +26,13 @@ import tempfile
import unittest
class LdbTestCase(unittest.TestCase):
+ """Trivial test case for running tests against a LDB."""
def setUp(self):
self.filename = os.tempnam()
self.ldb = samba.Ldb(self.filename)
def set_modules(self, modules=[]):
+ """Change the modules for this Ldb."""
m = ldb.Message()
m.dn = ldb.Dn(self.ldb, "@MODULES")
m["@LIST"] = ",".join(modules)