Back to index

plone3  3.1.7
Functions | Variables
plone.locking.tests Namespace Reference

Functions

def addMember
def setUp
def test_suite

Variables

tuple OPTIONFLAGS

Function Documentation

def plone.locking.tests.addMember (   self,
  username,
  fullname = "",
  email = "",
  roles = ('Member',,
  last_login_time = None 
)

Definition at line 16 of file tests.py.

00016 
00017 def addMember(self, username, fullname="", email="", roles=('Member',), last_login_time=None):
00018     self.portal.portal_membership.addMember(username, 'secret', roles, [])
00019     member = self.portal.portal_membership.getMemberById(username)
00020     member.setMemberProperties({'fullname': fullname, 'email': email,
00021                                 'last_login_time': DateTime(last_login_time),})
                                

Here is the caller graph for this function:

def plone.locking.tests.setUp (   self)

Definition at line 22 of file tests.py.

00022 
00023 def setUp(self):
00024     addMember(self, 'member1', 'Member one')
00025     addMember(self, 'member2', 'Member two')

Here is the call graph for this function:

Definition at line 26 of file tests.py.

00026 
00027 def test_suite():
00028     from unittest import TestSuite, makeSuite
00029     return unittest.TestSuite((Suite('README.txt',
00030                                      optionflags=OPTIONFLAGS,
00031                                      package='plone.locking',
00032                                      setUp=setUp,
00033                                      test_class=FunctionalTestCase),))

Variable Documentation

Initial value:
00001 (doctest.REPORT_ONLY_FIRST_FAILURE |
00002                doctest.ELLIPSIS |
00003                doctest.NORMALIZE_WHITESPACE)

Definition at line 12 of file tests.py.