1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

python/dcerpc: Custom implementations of policy_handle.__init__ and policy_handle.__repr__

pair-programmed with Jelmer
This commit is contained in:
Andrew Bartlett
2009-04-21 11:53:00 +02:00
parent 1856b999c8
commit 6f60a6e71a
2 changed files with 49 additions and 0 deletions

View File

@ -46,3 +46,14 @@ class GUIDTests(unittest.TestCase):
class PolicyHandleTests(unittest.TestCase):
def test_init(self):
x = misc.policy_handle(text1, 1)
self.assertEquals(1, x.handle_type)
self.assertEquals(text1, str(x.uuid))
def test_repr(self):
x = misc.policy_handle(text1, 42)
self.assertEquals("policy_handle('%s', %d)" % (text1, 42), repr(x))