summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2014-10-06 16:44:16 -0700
committerAndrew Bartlett <abartlet@samba.org>2014-10-08 01:09:50 +0200
commit3783f49abd77887f32bc2d95be50468ac1f5f81b (patch)
treedf3edc438375f8c21e6618d67b097f9c80c33fb0 /python
parent3e2d4199c34352e2af5fb95b5ecb6f7c0b20cbff (diff)
downloadsamba-3783f49abd77887f32bc2d95be50468ac1f5f81b.tar.gz
tests: Pass the test context as lp_ctx for messaging tests
Change-Id: I1acf5c42b21465a8c45549039f0054414b8f31d1 Signed-off-by: Matthieu Patou <mat@matws.net>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/messaging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/tests/messaging.py b/python/samba/tests/messaging.py
index f0cd368195f..5d32d608862 100644
--- a/python/samba/tests/messaging.py
+++ b/python/samba/tests/messaging.py
@@ -18,7 +18,7 @@
#
"""Tests for samba.messaging."""
-
+import samba
from samba.messaging import Messaging
from samba.tests import TestCase
from samba.dcerpc.server_id import server_id
@@ -26,6 +26,7 @@ from samba.dcerpc.server_id import server_id
class MessagingTests(TestCase):
def get_context(self, *args, **kwargs):
+ kwargs['lp_ctx'] = samba.tests.env_loadparm()
return Messaging(*args, **kwargs)
def test_register(self):