summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)