diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-09-23 19:52:45 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-09-24 15:03:59 +0200 |
commit | 0450a5bf90ea7ba58a44127821b15ab9d931a620 (patch) | |
tree | 4a14e95c3209435328d1b92be4f391009c3e0c78 /source4/scripting | |
parent | 5cf25fd2254ded03c05d4119fa8389c88c05b0f5 (diff) | |
download | samba-0450a5bf90ea7ba58a44127821b15ab9d931a620.tar.gz samba-0450a5bf90ea7ba58a44127821b15ab9d931a620.tar.bz2 samba-0450a5bf90ea7ba58a44127821b15ab9d931a620.zip |
PEP8
Diffstat (limited to 'source4/scripting')
6 files changed, 6 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/tests/dcerpc/bare.py b/source4/scripting/python/samba/tests/dcerpc/bare.py index cd939b8098..6cadad89f1 100644 --- a/source4/scripting/python/samba/tests/dcerpc/bare.py +++ b/source4/scripting/python/samba/tests/dcerpc/bare.py @@ -24,6 +24,7 @@ from samba.tests import cmdline_loadparm class BareTestCase(TestCase): + def test_bare(self): # Connect to the echo pipe x = ClientConnection("ncalrpc:localhost[DEFAULT]", diff --git a/source4/scripting/python/samba/tests/dcerpc/misc.py b/source4/scripting/python/samba/tests/dcerpc/misc.py index e9b5127a5a..ab76efc536 100644 --- a/source4/scripting/python/samba/tests/dcerpc/misc.py +++ b/source4/scripting/python/samba/tests/dcerpc/misc.py @@ -43,8 +43,6 @@ class GUIDTests(unittest.TestCase): guid2 = misc.GUID(text1) self.assertEquals(0, cmp(guid1, guid2)) self.assertEquals(guid1, guid2) - - class PolicyHandleTests(unittest.TestCase): diff --git a/source4/scripting/python/samba/tests/dcerpc/registry.py b/source4/scripting/python/samba/tests/dcerpc/registry.py index 526b2340cc..f1cd83790d 100644 --- a/source4/scripting/python/samba/tests/dcerpc/registry.py +++ b/source4/scripting/python/samba/tests/dcerpc/registry.py @@ -18,11 +18,11 @@ # from samba.dcerpc import winreg -import unittest from samba.tests import RpcInterfaceTestCase class WinregTests(RpcInterfaceTestCase): + def setUp(self): self.conn = winreg.winreg("ncalrpc:", self.get_loadparm(), self.get_credentials()) diff --git a/source4/scripting/python/samba/tests/dcerpc/rpcecho.py b/source4/scripting/python/samba/tests/dcerpc/rpcecho.py index 12638e2397..72eb87d750 100644 --- a/source4/scripting/python/samba/tests/dcerpc/rpcecho.py +++ b/source4/scripting/python/samba/tests/dcerpc/rpcecho.py @@ -24,6 +24,7 @@ from samba.tests import RpcInterfaceTestCase class RpcEchoTests(RpcInterfaceTestCase): + def setUp(self): self.conn = echo.rpcecho("ncalrpc:", self.get_loadparm()) @@ -59,6 +60,7 @@ class RpcEchoTests(RpcInterfaceTestCase): class NdrEchoTests(unittest.TestCase): + def test_info1_push(self): x = echo.info1() x.v = 42 diff --git a/source4/scripting/python/samba/tests/dcerpc/sam.py b/source4/scripting/python/samba/tests/dcerpc/sam.py index 50e00a3f9e..9532333a00 100644 --- a/source4/scripting/python/samba/tests/dcerpc/sam.py +++ b/source4/scripting/python/samba/tests/dcerpc/sam.py @@ -30,6 +30,7 @@ def toArray((handle, array, num_entries)): class SamrTests(RpcInterfaceTestCase): + def setUp(self): self.conn = samr.samr("ncalrpc:", self.get_loadparm()) diff --git a/source4/scripting/python/samba/tests/dcerpc/unix.py b/source4/scripting/python/samba/tests/dcerpc/unix.py index aa47b71b16..62169ad12c 100644 --- a/source4/scripting/python/samba/tests/dcerpc/unix.py +++ b/source4/scripting/python/samba/tests/dcerpc/unix.py @@ -21,6 +21,7 @@ from samba.dcerpc import unixinfo from samba.tests import RpcInterfaceTestCase class UnixinfoTests(RpcInterfaceTestCase): + def setUp(self): self.conn = unixinfo.unixinfo("ncalrpc:", self.get_loadparm()) |