diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-10-29 15:33:59 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-10-31 08:13:56 +1100 |
commit | 76b7348299870279acec5b7c9f02f4e4b2461703 (patch) | |
tree | 8f527f1c5dc26b49487b4b8862cd87478b3d52c5 /source4/scripting | |
parent | 3b4ef03097293f758d8f11cbe434063ed1dc6b91 (diff) | |
download | samba-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.py | 4 |
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)) |