comparison MoinMoin/parser/_tests/test_text_moin_wiki.py @ 3143:16ae95df840a

i18n.getText: fixed some callers that had still 'formatted=' kw args
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 27 Feb 2008 15:52:30 +0100
parents 1d3e65884337
children b06c048233f2
comparison
equal deleted inserted replaced
3142:fe93fb0732a2 3143:16ae95df840a
296 test = "text <<GetText(<escape-me>)>> text" 296 test = "text <<GetText(<escape-me>)>> text"
297 self._test(test) 297 self._test(test)
298 298
299 def testEscapeInGetTextFormatted(self): 299 def testEscapeInGetTextFormatted(self):
300 """ parser.wiki: escape html markup in getText formatted call """ 300 """ parser.wiki: escape html markup in getText formatted call """
301 test = self.request.getText('<escape-me>', formatted=1) 301 test = self.request.getText('<escape-me>', wiki=True)
302 self._test(test) 302 self._test(test)
303 303
304 def testEscapeInGetTextFormatedLink(self): 304 def testEscapeInGetTextFormatedLink(self):
305 """ parser.wiki: escape html markup in getText formatted call with link """ 305 """ parser.wiki: escape html markup in getText formatted call with link """
306 test = self.request.getText('[[<escape-me>]]', formatted=1) 306 test = self.request.getText('[[<escape-me>]]', wiki=True)
307 self._test(test) 307 self._test(test)
308 308
309 def testEscapeInGetTextUnFormatted(self): 309 def testEscapeInGetTextUnFormatted(self):
310 """ parser.wiki: escape html markup in getText non formatted call """ 310 """ parser.wiki: escape html markup in getText non formatted call """
311 test = self.request.getText('<escape-me>', formatted=0) 311 test = self.request.getText('<escape-me>', wiki=False)
312 self._test(test) 312 self._test(test)
313 313
314 def _test(self, test): 314 def _test(self, test):
315 expected = r'&lt;escape-me&gt;' 315 expected = r'&lt;escape-me&gt;'
316 result = self.parse(test) 316 result = self.parse(test)