Back to index

plone3  3.1.7
Public Member Functions
plone.app.workflow.tests.test_sharing_view.TestSharingView Class Reference
Inheritance diagram for plone.app.workflow.tests.test_sharing_view.TestSharingView:
Inheritance graph
[legend]
Collaboration diagram for plone.app.workflow.tests.test_sharing_view.TestSharingView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def test_search_by_login_name

Detailed Description

Definition at line 10 of file test_sharing_view.py.


Member Function Documentation

Definition at line 12 of file test_sharing_view.py.

00012 
00013     def afterSetUp(self):
00014         self.portal.acl_users._doAddUser('testuser', 'secret', ['Member'], [])
00015         self.loginAsPortalOwner()

Here is the call graph for this function:

Make sure we can search by login name on the Sharing tab.

Prevents regressions of #6853.

Definition at line 16 of file test_sharing_view.py.

00016 
00017     def test_search_by_login_name(self):
00018         """Make sure we can search by login name on the Sharing tab.
00019         
00020         Prevents regressions of #6853.
00021         """
00022         request = self.app.REQUEST
00023         request.form['search_term'] = 'testuser'
00024         view = getMultiAdapter((self.portal, request), name='sharing')
00025         results = view.user_search_results()
00026         self.failUnless(len(results) and results[0].get('id') == 'testuser', msg="Didn't find testuser when I searched by login name.")
00027 

Here is the call graph for this function:


The documentation for this class was generated from the following file: