Back to index

moin  1.9.0~rc2
Public Member Functions
MoinMoin._tests.test_wikiutil.TestTickets Class Reference

List of all members.

Public Member Functions

def testTickets

Detailed Description

Definition at line 35 of file test_wikiutil.py.


Member Function Documentation

Definition at line 36 of file test_wikiutil.py.

00036 
00037     def testTickets(self):
00038         from MoinMoin.Page import Page
00039         # page name with double quotes
00040         self.request.page = Page(self.request, u'bla"bla')
00041         ticket1 = wikiutil.createTicket(self.request)
00042         assert wikiutil.checkTicket(self.request, ticket1)
00043         # page name with non-ASCII chars
00044         self.request.page = Page(self.request, u'\xc4rger')
00045         ticket2 = wikiutil.createTicket(self.request)
00046         assert wikiutil.checkTicket(self.request, ticket2)
00047         # same page with another action
00048         self.request.page = Page(self.request, u'\xc4rger')
00049         self.request.action = 'another'
00050         ticket3 = wikiutil.createTicket(self.request)
00051         assert wikiutil.checkTicket(self.request, ticket3)
00052 
00053         assert ticket1 != ticket2
00054         assert ticket2 != ticket3
00055 

Here is the call graph for this function:


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