changeset 2957:e035a2b2f244

trivial change to make indentation on lxml based tests consistent
author RogerHaase <haaserd@gmail.com>
date Wed, 17 Jun 2015 14:52:23 -0700
parents b8255fed9b4e
children 6dd6f10636b3
files MoinMoin/converter/_tests/test_html_in.py MoinMoin/converter/_tests/test_html_in_out.py MoinMoin/converter/_tests/test_html_out.py
diffstat 3 files changed, 26 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/_tests/test_html_in.py	Wed Jun 17 14:34:46 2015 -0700
+++ b/MoinMoin/converter/_tests/test_html_in.py	Wed Jun 17 14:52:23 2015 -0700
@@ -58,36 +58,36 @@
     def test_base(self):
         data = [
             ('<html><div><p>Test</p></div></html>',
-             # <page><body><div><p>Test</p></div></body></page>
-             '/page/body/div[p="Test"]'),
+                # <page><body><div><p>Test</p></div></body></page>
+                '/page/body/div[p="Test"]'),
             ('<html><div><p>First paragraph</p><h1>Title</h1><p><em>Paragraph</em></p></div></html>',
-             # <page><body><div><p>First paragraph</p><h outline-level="1">Title</h><p><emphasis>Paragraph</em></p></div></page></body>
-             '/page/body/div/p[2][emphasis="Paragraph"]'),
+                # <page><body><div><p>First paragraph</p><h outline-level="1">Title</h><p><emphasis>Paragraph</em></p></div></page></body>
+                '/page/body/div/p[2][emphasis="Paragraph"]'),
             ('<html><div><p>First Line<br />Second Line</p></div></html>',
-             # <page><body><div>First Line<line-break />Second Line></div></body></page>
-             '/page/body/div/p[1]/line-break'),
+                # <page><body><div>First Line<line-break />Second Line></div></body></page>
+                '/page/body/div/p[1]/line-break'),
             ('<html><div><p>First Paragraph</p><hr /><p>Second Paragraph</p></div></html>',
-             # <page><body><div><p>First Paragraph</p><hr /><p>Second Paragraph</p></div></html>
-             '/page/body/div/separator'),
+                # <page><body><div><p>First Paragraph</p><hr /><p>Second Paragraph</p></div></html>
+                '/page/body/div/separator'),
             ('<div><p>Test</p></div>',
-             # <page><body><div><p>Test</p></div></body></page>
-             '/page/body/div[p="Test"]'),
+                # <page><body><div><p>Test</p></div></body></page>
+                '/page/body/div[p="Test"]'),
             # Test attributes conversion
             ('<div><p class="class text" style="style text" title="title text">Test</p></div>',
-             # <page><body><div><p html:class="class text" html:style="style text" html:title="title text">Test</p></div></body></page>
-             '/page/body/div/p[@html:class="class text"][@html:style="style text"][@html:title="title text"][text()="Test"]'),
+                # <page><body><div><p html:class="class text" html:style="style text" html:title="title text">Test</p></div></body></page>
+                '/page/body/div/p[@html:class="class text"][@html:style="style text"][@html:title="title text"][text()="Test"]'),
             # Test id
             ('<div><p id="first">Text<strong id="second">strong</strong></p></div>',
-             # <page><body><div><p xml:id="first">Text<strong xml:id="second">strong</strong></p></div></body></page>
-             '/page/body/div/p[@xml:id="first"][text()="Text"]/strong[@xml:id="second"][text()="strong"]'),
+                # <page><body><div><p xml:id="first">Text<strong xml:id="second">strong</strong></p></div></body></page>
+                '/page/body/div/p[@xml:id="first"][text()="Text"]/strong[@xml:id="second"][text()="strong"]'),
             # test trailing div part 1
             ('<p>Paragraph</p><div>Div</div>',
-             # <page><body><p>paragraph</p><div>div</div></body></page>
-             '/page/body[p="Paragraph"]'),
+                # <page><body><p>paragraph</p><div>div</div></body></page>
+                '/page/body[p="Paragraph"]'),
             # test trailing div part 2
             ('<p>Paragraph</p><div>Div</div>',
-             # <page><body><p>paragraph</p><div>div</div></body></page>
-             '/page/body/div/text()="Div"'),
+                # <page><body><p>paragraph</p><div>div</div></body></page>
+                '/page/body/div/text()="Div"'),
         ]
         for i in data:
             yield (self.do, ) + i
--- a/MoinMoin/converter/_tests/test_html_in_out.py	Wed Jun 17 14:34:46 2015 -0700
+++ b/MoinMoin/converter/_tests/test_html_in_out.py	Wed Jun 17 14:52:23 2015 -0700
@@ -60,15 +60,15 @@
     def test_base(self):
         data = [
             ('<html><div><p>Test</p></div></html>',
-             '/div/div[p="Test"]'),
+                '/div/div[p="Test"]'),
             ('<html><div><p>First paragraph</p><h1>Title</h1><p><em>Paragraph</em></p></div></html>',
-             '/div/div/p[2][em="Paragraph"]'),
+                '/div/div/p[2][em="Paragraph"]'),
             ('<html><div><p>First Line<br />Second line</p></div></html>',
-             '/div/div/p[1]/br'),
+                '/div/div/p[1]/br'),
             ('<div><p>Test</p></div>',
-             '/div/div[p="Test"]'),
+                '/div/div[p="Test"]'),
             ('<div><p class="class" title="title">Test</p></div>',
-             '/div/div/p[@class="class"][@title="title"][text()="Test"]'),
+                '/div/div/p[@class="class"][@title="title"][text()="Test"]'),
         ]
         for i in data:
             yield(self.do, ) + i
@@ -76,9 +76,9 @@
     def test_title(self):
         data = [
             ('<html><h2>Test</h2></html>',
-             '/div[h2="Test"]'),
+                '/div[h2="Test"]'),
             ('<html><h6>Test</h6></html>',
-             '/div[h6="Test"]'),
+                '/div[h6="Test"]'),
         ]
         for i in data:
             yield (self.do, ) + i
--- a/MoinMoin/converter/_tests/test_html_out.py	Wed Jun 17 14:34:46 2015 -0700
+++ b/MoinMoin/converter/_tests/test_html_out.py	Wed Jun 17 14:52:23 2015 -0700
@@ -238,7 +238,7 @@
     def test_admonition(self):
         data = [
             ('<page><body><admonition page:type="warning"><p>text</p></admonition></body></page>',
-             '/div/div[@class="warning"][p="text"]'),
+                '/div/div[@class="warning"][p="text"]'),
         ]
         for i in data:
             yield (self.do, ) + i