Author: jhammel
Date: 2007-06-21 14:35:52 -0400 (Thu, 21 Jun 2007)
New Revision: 6584
Modified:
opencore/trunk/opencore/nui/account/README.txt
Log:
flush out some of the tests. login test still needs work. probably have to
debug how pass does things. alternatively, just use the flunc test
Modified: opencore/trunk/opencore/nui/account/README.txt
===================================================================
--- opencore/trunk/opencore/nui/account/README.txt 2007-06-21 18:32:33 UTC
(rev 6583)
+++ opencore/trunk/opencore/nui/account/README.txt 2007-06-21 18:35:52 UTC
(rev 6584)
@@ -191,7 +191,34 @@
>>> view()
'http://nohost/plone/init-login'
+Login
+=====
+Logout first
+
+ >>> self.logout()
+ >>> portal.portal_membership.getAuthenticatedMember()
+ <SpecialUser 'Anonymous User'>
+
+Get the login view
+
+ >>> view = portal.restrictedTraverse('@@login')
+
+Clear the portal status messages and form
+
+ >>> view.portal_status_message
+ [...]
+ >>> view.request.form.clear()
+
+Login [to be done]
+
+ >>> view.request.form['__ac_name'] = 'foobar'
+ >>> view.request.form['__ac_password'] = 'testy'
+ >>> output = view()
+
+[Output should really be the user's homepage. but it isn't
+due to the fact that PAS isn't called. Deal with this later]
+
Verify portal status messages aren't being swallowed
====================================================
--
Archive:
http://www.openplans.org/projects/opencore/lists/openplans-svn/archive/2007/06/1182450952862
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.