git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f54cb1
)
python: Add some more rpc/echo tests.
author
Jelmer Vernooij
<jelmer@samba.org>
Sun, 13 Jan 2008 20:42:42 +0000
(21:42 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Mon, 14 Jan 2008 18:53:05 +0000
(19:53 +0100)
(This used to be commit
b4840d1ae283a3853d041f3a9a848aec991e81a6
)
source4/torture/rpc/echo.py
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/echo.py
b/source4/torture/rpc/echo.py
index d11a3ea66ab52162ef737cdfdbb1ddf2a9385288..7a0a54a1a1d0d3c242f5345d4e052bdbe6324a96 100644
(file)
--- a/
source4/torture/rpc/echo.py
+++ b/
source4/torture/rpc/echo.py
@@
-26,3
+26,14
@@
class RpcEchoTests(unittest.TestCase):
def test_addone(self):
self.assertEquals(2, conn.AddOne(1))
+
+ def test_echodata(self):
+ self.assertEquals("bla", conn.EchoData(3, "bla"))
+
+ def test_call(self):
+ self.assertEquals("foobar", conn.TestCall("foobar"))
+
+ def test_surrounding(self):
+ somearray = [1,2,3,4]
+ conn.TestSurrounding(echo.Surrounding(4, somearray))
+ self.assertEquals(8 * [0], somearray)