Back to index

moin  1.9.0~rc2
Public Member Functions
MoinMoin._tests.test_PageEditor.TestDictPageDeletion Class Reference

List of all members.

Public Member Functions

def testCreateDictAndDeleteDictPage

Detailed Description

Definition at line 198 of file test_PageEditor.py.


Member Function Documentation

simple test if it is possible to delete a Dict page after creation

Definition at line 200 of file test_PageEditor.py.

00200 
00201     def testCreateDictAndDeleteDictPage(self):
00202         """
00203         simple test if it is possible to delete a Dict page after creation
00204         """
00205         become_trusted(self.request)
00206         pagename = u'SomeDict'
00207         page = PageEditor(self.request, pagename, do_editor_backup=0)
00208         body = u"This is an example text"
00209         page.saveText(body, 0)
00210 
00211         success_i, result = page.deletePage()
00212 
00213         expected = u'Page "SomeDict" was successfully deleted!'
00214 
00215         assert result == expected

Here is the call graph for this function:


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