Back to index

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

List of all members.

Public Member Functions

def testExpandCamelCaseUserName
def setup_method
def teardown_method
def expand

Public Attributes

 page
 savedName

Static Public Attributes

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

Detailed Description

Definition at line 61 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@ CamelCase 

Definition at line 65 of file test_PageEditor.py.

00065 
00066     def testExpandCamelCaseUserName(self):
00067         """ PageEditor: expand @USERNAME@ CamelCase """
00068         assert self.expand() == self.name
00069 

Here is the call graph for this function:


Member Data Documentation

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