Пример #1
0
    def test_negative_has_continuation_indent(self):
        text = (
            FILLER + EL +
            EL +
            FILLER
        )
        wikicode = mwp.parse(text)

        result = indentutils.has_continuation_indent(wikicode)

        self.assertFalse(result)
Пример #2
0
    def test_positive_has_continuation_indent(self):
        text = (
            OUTDENT + FILLER + EL +
            EL +
            FILLER
        )
        wikicode = mwp.parse(text)

        result = indentutils.has_continuation_indent(wikicode)

        self.assertTrue(result)