summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-24 22:13:32 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-24 22:13:32 +0200
commit75e7962d2efb1aa6e45ca999b1a93829406de540 (patch)
treebb8c3fc851a4ccdb54c15ee6e19befe2b63153b2 /source4/scripting/python
parentf9c36fae757d197ee4de06f0ecf94ae13faad0de (diff)
downloadsamba-75e7962d2efb1aa6e45ca999b1a93829406de540.tar.gz
samba-75e7962d2efb1aa6e45ca999b1a93829406de540.tar.bz2
samba-75e7962d2efb1aa6e45ca999b1a93829406de540.zip
Add convenience functions for setting Python objects from errors.
(This used to be commit f1de723b89251cbc8140b838941f304a34871bf3)
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/tests/dcerpc/rpcecho.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/tests/dcerpc/rpcecho.py b/source4/scripting/python/samba/tests/dcerpc/rpcecho.py
index 9157f83fc9..83279a0b30 100644
--- a/source4/scripting/python/samba/tests/dcerpc/rpcecho.py
+++ b/source4/scripting/python/samba/tests/dcerpc/rpcecho.py
@@ -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):