Commits

sharky93 committed 6b7e6f4

Adds test for resize, rEST markup

Comments (0)

Files changed (1)

MoinMoin/converter/_tests/test_rst_in.py

     namespaces = {
         moin_page.namespace: '',
         xlink.namespace: 'xlink',
+        html: 'xhtml',
     }
 
     output_re = re.compile(r'\s+xmlns(:\S+)?="[^"]+"')
 
     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