1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00

python: Port tests of samba.messaging to Python 3 compatible form.

Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Oct 23 15:40:48 CEST 2017 on sn-devel-144
This commit is contained in:
Lumir Balhar
2017-09-14 09:31:17 +02:00
committed by Andreas Schneider
parent 806c1bcacd
commit e583a926eb
3 changed files with 10 additions and 2 deletions

View File

@@ -26,6 +26,8 @@ from samba.ndr import ndr_print
from samba.dcerpc import server_id
import random
import os
from samba.compat import integer_types
class MessagingTests(TestCase):
@@ -38,7 +40,7 @@ class MessagingTests(TestCase):
def callback():
pass
msg_type = x.register((callback, None))
self.assertTrue(isinstance(msg_type, long))
self.assertTrue(isinstance(msg_type, integer_types))
x.deregister(callback, msg_type)
def test_all_servers(self):