Back to index

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

List of all members.

Public Member Functions

def setup_method
def teardown_method
def testMailto
def expand

Public Attributes

 savedValid
 savedEmail
 page
 savedName

Static Public Attributes

string variable = u'@MAILTO@'
string name = u'user name'
string email = 'user@example.com'
string pagename = u'AutoCreatedMoinMoinTemporaryTestPage'

Detailed Description

Definition at line 79 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 from MoinMoin._tests.test_PageEditor.TestExpandUserName.

Definition at line 85 of file test_PageEditor.py.

00085 
00086     def setup_method(self, method):
00087         super(TestExpandMailto, self).setup_method(method)
00088         self.savedValid = self.request.user.valid
00089         self.request.user.valid = 1
00090         self.savedEmail = self.request.user.email
00091         self.request.user.email = self.email

Reimplemented from MoinMoin._tests.test_PageEditor.TestExpandUserName.

Definition at line 92 of file test_PageEditor.py.

00092 
00093     def teardown_method(self, method):
00094         super(TestExpandMailto, self).teardown_method(method)
00095         self.request.user.valid = self.savedValid
00096         self.request.user.email = self.savedEmail

PageEditor: expand @MAILTO@ 

Definition at line 97 of file test_PageEditor.py.

00097 
00098     def testMailto(self):
00099         """ PageEditor: expand @MAILTO@ """
00100         assert self.expand() == u'<<MailTo(%s)>>' % self.email
00101 

Here is the call graph for this function:


Member Data Documentation

string MoinMoin._tests.test_PageEditor.TestExpandMailto.email = 'user@example.com' [static]

Definition at line 83 of file test_PageEditor.py.

Definition at line 82 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 89 of file test_PageEditor.py.

Definition at line 51 of file test_PageEditor.py.

Definition at line 87 of file test_PageEditor.py.

Reimplemented from MoinMoin._tests.test_PageEditor.TestExpandUserName.

Definition at line 81 of file test_PageEditor.py.


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