From 0450a5bf90ea7ba58a44127821b15ab9d931a620 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 23 Sep 2009 19:52:45 +0200 Subject: PEP8 --- source4/scripting/python/samba/tests/dcerpc/bare.py | 1 + source4/scripting/python/samba/tests/dcerpc/misc.py | 2 -- source4/scripting/python/samba/tests/dcerpc/registry.py | 2 +- source4/scripting/python/samba/tests/dcerpc/rpcecho.py | 2 ++ source4/scripting/python/samba/tests/dcerpc/sam.py | 1 + source4/scripting/python/samba/tests/dcerpc/unix.py | 1 + 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()) -- cgit