Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.controlpanel.tests.cptc.ControlPanelTestCase Class Reference
Inheritance diagram for plone.app.controlpanel.tests.cptc.ControlPanelTestCase:
Inheritance graph
[legend]
Collaboration diagram for plone.app.controlpanel.tests.cptc.ControlPanelTestCase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def loginAsManager

Public Attributes

 browser
 uf
 ptool
 site_props

Detailed Description

base test case with convenience methods for all control panel tests

Definition at line 12 of file cptc.py.


Member Function Documentation

Definition at line 15 of file cptc.py.

00015 
00016     def afterSetUp(self):
00017         super(ControlPanelTestCase, self).afterSetUp()
00018                 
00019         self.browser = Browser()
00020         
00021         self.uf = self.portal.acl_users
00022         self.uf.userFolderAddUser('root', 'secret', ['Manager'], [])
00023         
00024         self.ptool = getToolByName(self.portal, 'portal_properties')
00025         self.site_props = self.ptool.site_properties

def plone.app.controlpanel.tests.cptc.ControlPanelTestCase.loginAsManager (   self,
  user = 'root',
  pwd = 'secret' 
)
points the browser to the login screen and logs in as user root with Manager role.

Definition at line 26 of file cptc.py.

00026 
00027     def loginAsManager(self, user='root', pwd='secret'):
00028         """points the browser to the login screen and logs in as user root with Manager role."""
00029         self.browser.open('http://nohost/plone/')
00030         self.browser.getLink('Log in').click()
00031         self.browser.getControl('Login Name').value = user
00032         self.browser.getControl('Password').value = pwd
00033         self.browser.getControl('Log in').click()

Member Data Documentation

Definition at line 18 of file cptc.py.

Definition at line 23 of file cptc.py.

Definition at line 24 of file cptc.py.

Definition at line 20 of file cptc.py.


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