Mercurial > moin > 2.0
changeset 2534:6b7e6f43de4a
Adds test for resize, rEST markup
author | sharky93 <rishabhr123@gmail.com> |
---|---|
date | Mon, 22 Jul 2013 04:21:34 +0530 |
parents | cb0b32c2064f |
children | 533aa3a9724b |
files | MoinMoin/converter/_tests/test_rst_in.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/converter/_tests/test_rst_in.py Mon Jul 22 04:20:37 2013 +0530 +++ b/MoinMoin/converter/_tests/test_rst_in.py Mon Jul 22 04:21:34 2013 +0530 @@ -16,6 +16,7 @@ namespaces = { moin_page.namespace: '', xlink.namespace: 'xlink', + html: 'xhtml', } output_re = re.compile(r'\s+xmlns(:\S+)?="[^"]+"') @@ -55,13 +56,13 @@ def test_image(self): data = [ - (u'.. image:: images/biohazard.png', '<page><body><object xlink:href="images/biohazard.png" /></body></page>'), + (u'.. image:: images/biohazard.png', '<page><body><object xlink:href="wiki.local:images/biohazard.png?do=get" /></body></page>'), (u""".. image:: images/biohazard.png :height: 100 :width: 200 :scale: 50 - :alt: alternate text""", '<page><body><object alt="images/biohazard.png" height="100" scale="50" width="200" xlink:href="images/biohazard.png" /></body></page>'), - (u'abc |a| cba\n\n.. |a| image:: test.png', '<page><body><p>abc <object alt="test.png" xlink:href="test.png" /> cba</p></body></page>'), + :alt: alternate text""", '<page><body><object xhtml:alt="alternate text" xhtml:height="50" xhtml:width="100" xlink:href="wiki.local:images/biohazard.png?do=get" /></body></page>'), + (u'abc |test| cba\n\n.. |test| image:: test.png', '<page><body><p>abc <object xhtml:alt="test" xlink:href="wiki.local:test.png?do=get" /> cba</p></body></page>'), ] for i in data: yield (self.do, ) + i