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

Add convenience functions for setting Python objects from errors.

(This used to be commit f1de723b89)
This commit is contained in:
Jelmer Vernooij
2008-05-24 22:13:32 +02:00
parent f9c36fae75
commit 75e7962d2e
5 changed files with 18 additions and 8 deletions

View File

@ -42,6 +42,11 @@ class RpcEchoTests(RpcInterfaceTestCase):
y = self.conn.TestSurrounding(surrounding_struct)
self.assertEquals(8 * [0], y.surrounding)
def test_manual_request(self):
self.assertEquals("\x01\x00\x00\x00", self.conn.request(0, chr(0) * 4))
def test_server_name(self):
self.assertEquals(None, self.conn.server_name)
class NdrEchoTests(unittest.TestCase):
def test_info1_push(self):