Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 723468 | Differences between
and this patch

Collapse All | Expand All

(-)a/tests/test_sphinx.py (-11 / +12 lines)
Lines 142-158 class GenericTests(SphinxIntegrationTests): Link Here
142
        output = self.read_file('index.html')
142
        output = self.read_file('index.html')
143
        self.assertIn(
143
        self.assertIn(
144
            ('<ul class="simple">\n'
144
            ('<ul class="simple">\n'
145
             '<li>Item A</li>\n'
145
             '<li><p>Item A</p></li>\n'
146
             '<li>Item B</li>\n'
146
             '<li><p>Item B</p></li>\n'
147
             '<li>Item C</li>\n'
147
             '<li><p>Item C</p></li>\n'
148
             '</ul>'),
148
             '</ul>'),
149
            output
149
            output
150
        )
150
        )
151
        self.assertIn(
151
        self.assertIn(
152
            ('<ol class="simple">\n'
152
            ('<ol class="simple">\n'
153
             '<li>Item 1</li>\n'
153
             '<li><p>Item 1</p></li>\n'
154
             '<li>Item 2</li>\n'
154
             '<li><p>Item 2</p></li>\n'
155
             '<li>Item 3</li>\n'
155
             '<li><p>Item 3</p></li>\n'
156
             '</ol>'),
156
             '</ol>'),
157
            output
157
            output
158
        )
158
        )
Lines 207-222 class CustomExtensionTests(SphinxIntegrationTests): Link Here
207
    def test_integration(self):
207
    def test_integration(self):
208
        output = self.read_file('index.html')
208
        output = self.read_file('index.html')
209
        self.assertIn('<table ', output)
209
        self.assertIn('<table ', output)
210
        self.assertIn('<th class="head">abc</th>', output)
210
        self.assertIn('<th class="head"><p>abc</p></th>', output)
211
        self.assertIn('<th class="head">data</th>', output)
211
        self.assertIn('<th class="head"><p>data</p></th>', output)
212
        self.assertIn('</table>', output)
212
        self.assertIn('</table>', output)
213
213
214
        self.assertIn(
214
        self.assertIn(
215
            ('<div class="contents topic" id="contents">\n'
215
            ('<div class="contents topic" id="contents">\n'
216
             '<p class="topic-title first">Contents</p>\n'
216
             '<p class="topic-title">Contents</p>\n'
217
             '<ul class="simple">\n'
217
             '<ul class="simple">\n'
218
             '<li><a class="reference internal" href="#header" id="id1">Header</a><ul>\n'
218
             '<li><p><a class="reference internal" href="#header" id="id1">Header</a></p>\n'
219
             '<li><a class="reference internal" href="#header-2" id="id2">Header 2</a></li>\n'
219
             '<ul>\n'
220
             '<li><p><a class="reference internal" href="#header-2" id="id2">Header 2</a></p></li>\n'
220
             '</ul>\n</li>\n</ul>'),
221
             '</ul>\n</li>\n</ul>'),
221
            output
222
            output
222
            )
223
            )

Return to bug 723468