Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
MoinMoin._tests.test_PageEditor.TestExpandUserName Class Reference
Inheritance diagram for MoinMoin._tests.test_PageEditor.TestExpandUserName:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin._tests.test_PageEditor.TestExpandUserName:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setup_method
def teardown_method
def expand

Public Attributes

 page
 savedName

Static Public Attributes

string pagename = u'AutoCreatedMoinMoinTemporaryTestPage'
string variable = u'@USERNAME@'

Detailed Description

Base class for user name tests

Set user name during tests.

Definition at line 41 of file test_PageEditor.py.


Member Function Documentation

Definition at line 57 of file test_PageEditor.py.

00057 
00058     def expand(self):
00059         return self.page._expand_variables(self.variable)
00060 

Here is the caller graph for this function:

Reimplemented in MoinMoin._tests.test_PageEditor.TestExpandPrivateVariables, and MoinMoin._tests.test_PageEditor.TestExpandMailto.

Definition at line 49 of file test_PageEditor.py.

00049 
00050     def setup_method(self, method):
00051         self.page = PageEditor(self.request, self.pagename)
00052         self.savedName = self.request.user.name
00053         self.request.user.name = self.name

Reimplemented in MoinMoin._tests.test_PageEditor.TestExpandPrivateVariables, and MoinMoin._tests.test_PageEditor.TestExpandMailto.

Definition at line 54 of file test_PageEditor.py.

00054 
00055     def teardown_method(self, method):
00056         self.request.user.name = self.savedName


Member Data Documentation

Definition at line 50 of file test_PageEditor.py.

string MoinMoin._tests.test_PageEditor.TestExpandUserName.pagename = u'AutoCreatedMoinMoinTemporaryTestPage' [static]

Definition at line 46 of file test_PageEditor.py.

Definition at line 51 of file test_PageEditor.py.


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