changeset 2928:263d4f8009f9

xmlrpc: remove auth token test
author Johannes Berg <johannes AT sipsolutions DOT net>
date Mon, 29 Oct 2007 12:03:09 +0100
parents 51b6cbc64dcb
children 0ca160b0e5d2
files MoinMoin/xmlrpc/_tests/test_xmlrpc.py
diffstat 1 files changed, 0 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/xmlrpc/_tests/test_xmlrpc.py	Mon Oct 29 11:06:25 2007 +0100
+++ b/MoinMoin/xmlrpc/_tests/test_xmlrpc.py	Mon Oct 29 12:03:09 2007 +0100
@@ -30,17 +30,6 @@
     assert type(result[0]) is dict
     assert result[0].has_key("faultCode") and result[0].has_key("faultString")
 
-def test_generate_auth_token(request):
-    """Check if auth token generation works"""
-
-    usr = User(request)
-    xmlrpc = XmlRpcBase(request)
-    token = xmlrpc._generate_auth_token(usr)
-
-    print "Token should be a string or unicode object and have langth of 32 chars!"
-    assert type(token) is str or type(token) is unicode
-    assert len(token) == 32
-
 def test_getAuthToken(request):
     """ Tests if getAuthToken passes without crashing """
     xmlrpc = XmlRpcBase(request)