summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-13 21:42:42 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-14 19:53:05 +0100
commit0d39a205bf227851028aea11744e6a60ff9a2cb9 (patch)
tree1a65c27c9107af5a1d1841cb30748abe86137763 /source4/torture
parent1f54cb1af997f993ebd130f08813028f7e1f3f51 (diff)
downloadsamba-0d39a205bf227851028aea11744e6a60ff9a2cb9.tar.gz
samba-0d39a205bf227851028aea11744e6a60ff9a2cb9.tar.bz2
samba-0d39a205bf227851028aea11744e6a60ff9a2cb9.zip
python: Add some more rpc/echo tests.
(This used to be commit b4840d1ae283a3853d041f3a9a848aec991e81a6)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/echo.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/torture/rpc/echo.py b/source4/torture/rpc/echo.py
index d11a3ea66a..7a0a54a1a1 100644
--- 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)