summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-06-19 18:58:18 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-19 22:46:45 +0200
commitc92db7b6dc31756fc461ea9f74e1cd675e3e160d (patch)
tree14a1cb47c782b42ab023e1e462447ee55ddeb179 /source4/torture
parent105ebb34405eb458c51ebbfb57b3ce31a41c34e2 (diff)
downloadsamba-c92db7b6dc31756fc461ea9f74e1cd675e3e160d.tar.gz
samba-c92db7b6dc31756fc461ea9f74e1cd675e3e160d.tar.bz2
samba-c92db7b6dc31756fc461ea9f74e1cd675e3e160d.zip
python: Use samba.tests.TestCase, make sure base class tearDown and
setUp methods are called, fix formatting.
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/libnet/python/samr-test.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/torture/libnet/python/samr-test.py b/source4/torture/libnet/python/samr-test.py
index d68456b79d..211792c1db 100644
--- a/source4/torture/libnet/python/samr-test.py
+++ b/source4/torture/libnet/python/samr-test.py
@@ -26,11 +26,9 @@
# PYTHONPATH="$samba4srcdir/torture/libnet/python" $SUBUNITRUN samr-test -Ukma-exch.devel/Administrator%333
#
-import sys
import os
from samba import net
-import unittest
import samba.tests
if not "ACCOUNT_NAME" in os.environ.keys():
@@ -48,7 +46,7 @@ creds = samba.tests.cmdline_credentials
# Tests start here
#
-class Libnet_SetPwdTest(unittest.TestCase):
+class Libnet_SetPwdTest(samba.tests.TestCase):
########################################################################################