Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
test_editbar_actions.TestEditBarActions Class Reference

List of all members.

Public Member Functions

def setup_method
def teardown_method
def test_editbar_for_anonymous_user
def test_editbar_for_valid_user

Public Attributes

 savedValid
 savedMailEnabled
 page
 ThemeBase

Detailed Description

Definition at line 12 of file test_editbar_actions.py.


Member Function Documentation

Definition at line 13 of file test_editbar_actions.py.

00013 
00014     def setup_method(self, method):
00015         self.savedValid = self.request.user.valid
00016         self.savedMailEnabled = self.request.cfg.mail_enabled
00017         self.request.cfg.mail_enabled = True
00018         self.page = Page(self.request, u'FrontPage')
00019         self.ThemeBase = ThemeBase(self.request)

Definition at line 20 of file test_editbar_actions.py.

00020 
00021     def teardown_method(self, method):
00022         self.request.user.valid = self.savedValid
00023         self.request.cfg.mail_enabled = self.savedMailEnabled

Definition at line 24 of file test_editbar_actions.py.

00024 
00025     def test_editbar_for_anonymous_user(self):
00026         assert not self.request.user.valid
00027         assert not self.ThemeBase.subscribeLink(self.page)
00028         assert not self.ThemeBase.quicklinkLink(self.page)

Definition at line 29 of file test_editbar_actions.py.

00029 
00030     def test_editbar_for_valid_user(self):
00031         self.request.user.valid = True
00032         assert self.request.user.valid
00033         assert 'subscribe' in self.ThemeBase.subscribeLink(self.page)
00034         assert 'quicklink' in self.ThemeBase.quicklinkLink(self.page)


Member Data Documentation

Definition at line 17 of file test_editbar_actions.py.

Definition at line 15 of file test_editbar_actions.py.

Definition at line 14 of file test_editbar_actions.py.

Definition at line 18 of file test_editbar_actions.py.


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