summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-10-29 15:33:59 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-10-31 08:13:56 +1100
commit76b7348299870279acec5b7c9f02f4e4b2461703 (patch)
tree8f527f1c5dc26b49487b4b8862cd87478b3d52c5 /source4/scripting
parent3b4ef03097293f758d8f11cbe434063ed1dc6b91 (diff)
downloadsamba-76b7348299870279acec5b7c9f02f4e4b2461703.tar.gz
samba-76b7348299870279acec5b7c9f02f4e4b2461703.tar.bz2
samba-76b7348299870279acec5b7c9f02f4e4b2461703.zip
pymessaging: Use the server_id IDL structure rather than a tuple
This will make it easier to pass this structure in and out. The tuple is still accepted as input. Andrew Bartlett
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/tests/messaging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/tests/messaging.py b/source4/scripting/python/samba/tests/messaging.py
index fd9aa8ef82..3348ff8deb 100644
--- a/source4/scripting/python/samba/tests/messaging.py
+++ b/source4/scripting/python/samba/tests/messaging.py
@@ -21,6 +21,7 @@
from samba.messaging import Messaging
from samba.tests import TestCase
+from samba.dcerpc.server_id import server_id
class MessagingTests(TestCase):
@@ -36,8 +37,7 @@ class MessagingTests(TestCase):
def test_assign_server_id(self):
x = self.get_context()
- self.assertTrue(isinstance(x.server_id, tuple))
- self.assertEquals(3, len(x.server_id))
+ self.assertTrue(isinstance(x.server_id, server_id))
def test_ping_speed(self):
server_ctx = self.get_context((0, 1))