>From 15814b15579394a2b5c7d008ae9801f645ab9d17 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Mon, 6 Oct 2014 16:44:16 -0700 Subject: [PATCH] tests: Pass the test context as lp_ctx for messaging tests Change-Id: I1acf5c42b21465a8c45549039f0054414b8f31d1 Signed-off-by: Matthieu Patou --- python/samba/tests/messaging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/samba/tests/messaging.py b/python/samba/tests/messaging.py index f0cd368..5d32d60 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): -- 1.9.1