Back to index

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

List of all members.

Public Member Functions

def testExtendedNamesEnabled
def setup_method
def teardown_method
def expand

Public Attributes

 page
 savedName

Static Public Attributes

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

Detailed Description

Definition at line 70 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:

def MoinMoin._tests.test_PageEditor.TestExpandUserName.setup_method (   self,
  method 
) [inherited]

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

PageEditor: expand @USERNAME@ extended name - enabled 

Definition at line 74 of file test_PageEditor.py.

00074 
00075     def testExtendedNamesEnabled(self):
00076         """ PageEditor: expand @USERNAME@ extended name - enabled """
00077         assert self.expand() == u'[[%s]]' % self.name
00078 

Here is the call graph for this function:


Member Data Documentation

Definition at line 72 of file test_PageEditor.py.

Definition at line 50 of file test_PageEditor.py.

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

Definition at line 46 of file test_PageEditor.py.

Definition at line 51 of file test_PageEditor.py.

string MoinMoin._tests.test_PageEditor.TestExpandUserName.variable = u'@USERNAME@' [static, inherited]

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