diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-14 06:05:28 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-14 19:53:07 +0100 |
commit | 271f5f18f2c871cfba256f7088839e4eb195e289 (patch) | |
tree | a237b81aa5247f2f0e19f4524ad2255d85d8e638 /source4/scripting | |
parent | 4cfd90308c4dffebf7cebdcd8c11a7aa836ce23e (diff) | |
download | samba-271f5f18f2c871cfba256f7088839e4eb195e289.tar.gz samba-271f5f18f2c871cfba256f7088839e4eb195e289.tar.bz2 samba-271f5f18f2c871cfba256f7088839e4eb195e289.zip |
python: Fix last bugs in rpcecho test. It passes now!
(This used to be commit 25a0cd091bb24e579ceb34472d9c213aae157ba9)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/tests/dcerpc/rpcecho.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/tests/dcerpc/rpcecho.py b/source4/scripting/python/samba/tests/dcerpc/rpcecho.py index 52a4f49bb4..52c2bb8c72 100644 --- a/source4/scripting/python/samba/tests/dcerpc/rpcecho.py +++ b/source4/scripting/python/samba/tests/dcerpc/rpcecho.py @@ -31,12 +31,14 @@ class RpcEchoTests(unittest.TestCase): self.assertEquals(2, self.conn.AddOne(1)) def test_echodata(self): - self.assertEquals("bla", self.conn.EchoData(3, "bla")) + self.assertEquals([1,2,3], self.conn.EchoData(3, [1, 2, 3])) def test_call(self): - self.assertEquals("foobar", self.conn.TestCall("foobar")) + self.assertEquals(u"foobar", self.conn.TestCall(u"foobar")) def test_surrounding(self): - somearray = [1,2,3,4] - (y,) = self.conn.TestSurrounding(echo.Surrounding(4, somearray)) + surrounding_struct = echo.Surrounding() + surrounding_struct.x = 4 + surrounding_struct.surrounding = [1,2,3,4] + y = self.conn.TestSurrounding(surrounding_struct) self.assertEquals(8 * [0], y.surrounding) |