File: test_textile.py

package info (click to toggle)
pymarkups 4.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: python: 1,156; sh: 7; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 504 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This file is part of python-markups test suite
# License: 3-clause BSD, see LICENSE file
# Copyright: (C) Dmitry Shachnev, 2013-2022

import unittest

from markups import TextileMarkup


@unittest.skipUnless(TextileMarkup.available(), "Textile not available")
class TextileTest(unittest.TestCase):
    def test_textile(self) -> None:
        markup = TextileMarkup()
        html = markup.convert("Hello, **world**!").get_document_body()
        self.assertEqual(html, "\t<p>Hello, <b>world</b>!</p>")