Attachment 'test_text_moin_wiki.py.patch'

Download

   1 diff -r b06c048233f2 MoinMoin/parser/_tests/test_text_moin_wiki.py
   2 --- a/MoinMoin/parser/_tests/test_text_moin_wiki.py	Sun Mar 09 00:02:17 2008 +0100
   3 +++ b/MoinMoin/parser/_tests/test_text_moin_wiki.py	Sun Mar 09 14:33:12 2008 +0100
   4 @@ -579,6 +579,26 @@ class TestTransclusionMarkup(ParserTestC
   5              result = self.needle.search(html).group(1)
   6              assert result == expected
   7  
   8 -
   9 +class TestMacrosInOneLine(ParserTestCase):
  10 +    """ Test macro formatting
  11 +    """
  12 +
  13 +    text = 'AAA %s AAA'
  14 +    needle = re.compile(text % r'(.+)')
  15 +    _tests = (
  16 +        # test                               expected
  17 +        (u'<<Verbatim(A)>><<Verbatim(a)>>',   'Aa'),
  18 +        (u' <<Verbatim(A)>><<Verbatim(a)>>',  ' Aa'),
  19 +        (u' <<Verbatim(A)>> <<Verbatim(a)>>', ' A a'),
  20 +        )
  21 +
  22 +    def testMultipleMacrosInOneLine(self):
  23 +        """ parser.wiki: multiple macros in one line and no linebreak"""
  24 +        for test, expected in self._tests:
  25 +            html = self.parse(self.text % test)
  26 +            result = self.needle.search(html).group(1)
  27 +            assert result == expected
  28 +
  29 + 
  30  coverage_modules = ['MoinMoin.parser.text_moin_wiki']
  31  

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2008-03-09 13:37:44, 1.1 KB) [[attachment:test_text_moin_wiki.py.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.