diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-13 21:42:42 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-14 19:53:05 +0100 |
commit | 0d39a205bf227851028aea11744e6a60ff9a2cb9 (patch) | |
tree | 1a65c27c9107af5a1d1841cb30748abe86137763 /source4/torture | |
parent | 1f54cb1af997f993ebd130f08813028f7e1f3f51 (diff) | |
download | samba-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.py | 11 |
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) |