Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
test_macro.TestMacro Class Reference
Collaboration diagram for test_macro.TestMacro:
Collaboration graph

List of all members.

Public Member Functions

def setup_class
def teardown_class
def testTrivialMacro

Public Attributes


Static Public Attributes

string pagename = u'AutoCreatedMoinMoinTemporaryTestPageForTestMacro'

Detailed Description

Definition at line 15 of file

Member Function Documentation

Definition at line 18 of file

00019     def setup_class(self):
00020         request = self.request
00021         become_trusted(request)
00022 = create_page(request, self.pagename, u"Foo!")

Here is the call graph for this function:

Definition at line 23 of file

00024     def teardown_class(self):
00025         nuke_page(self.request, self.pagename)

Here is the call graph for this function:

macro: trivial macro works

Definition at line 26 of file

00027     def testTrivialMacro(self):
00028         """macro: trivial macro works"""
00029         m = make_macro(self.request,
00030         expected = m.formatter.linebreak(0)
00031         result = m.execute("BR", "")
00032         assert result == expected

Here is the call graph for this function:

Member Data Documentation

Definition at line 21 of file

string test_macro.TestMacro.pagename = u'AutoCreatedMoinMoinTemporaryTestPageForTestMacro' [static]

Definition at line 16 of file

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