1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

tests: Pass the test context as lp_ctx for messaging tests

Change-Id: I1acf5c42b21465a8c45549039f0054414b8f31d1
Signed-off-by: Matthieu Patou <mat@matws.net>
This commit is contained in:
Matthieu Patou 2014-10-06 16:44:16 -07:00 committed by Andrew Bartlett
parent 3e2d4199c3
commit 3783f49abd

View File

@ -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):