mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
PEP8
This commit is contained in:
@ -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]",
|
||||
|
@ -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):
|
||||
|
@ -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())
|
||||
|
@ -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
|
||||
|
@ -30,6 +30,7 @@ def toArray((handle, array, num_entries)):
|
||||
|
||||
|
||||
class SamrTests(RpcInterfaceTestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.conn = samr.samr("ncalrpc:", self.get_loadparm())
|
||||
|
||||
|
@ -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())
|
||||
|
||||
|
Reference in New Issue
Block a user