changeset 2588:5ae633bf2de5

add test for xmlrpc getAuthToken
author Ville-Pekka Vainio <vpivaini AT cs DOT helsinki DOT fi>
date Mon, 23 Jul 2007 13:00:13 +0300
parents 64725664bd63
children 2815c91635ff
files MoinMoin/xmlrpc/_tests/test_xmlrpc.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/xmlrpc/_tests/test_xmlrpc.py	Mon Jul 23 13:57:23 2007 +0300
+++ b/MoinMoin/xmlrpc/_tests/test_xmlrpc.py	Mon Jul 23 13:00:13 2007 +0300
@@ -40,6 +40,10 @@
     assert type(token) == str or type(token) == unicode
     assert len(token) == 32
 
+def test_getAuthToken(request):
+    """ Tests if getAuthToken passes without crashing """
+    xmlrpc = XmlRpcBase(request)
+    assert xmlrpc.xmlrpc_getAuthToken("Foo", "bar") == ""
 
 coverage_modules = ['MoinMoin.xmlrpc']