mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 18:47:16 +01:00
Increase coverage in evennia/utils/text2html.
This commit is contained in:
parent
7d05b3ac0d
commit
7ceef9a54a
1 changed files with 6 additions and 0 deletions
|
|
@ -13,6 +13,12 @@ class TestText2Html(TestCase):
|
|||
self.assertEqual(
|
||||
"<span class=\"err\">red</span>foo",
|
||||
parser.re_color(ansi.ANSI_RED + "red" + ansi.ANSI_NORMAL + "foo"))
|
||||
self.assertEqual(
|
||||
"<span class=\"bgcolor-001\">red</span>foo",
|
||||
parser.re_color(ansi.ANSI_BACK_RED + "red" + ansi.ANSI_NORMAL + "foo"))
|
||||
self.assertEqual(
|
||||
"<span class=\"bgcolor-001\"><span class=\"err\">red</span></span>foo",
|
||||
parser.re_color(ansi.ANSI_BACK_RED + ansi.ANSI_GREEN + "red" + ansi.ANSI_NORMAL + "foo"))
|
||||
|
||||
def test_re_bold(self):
|
||||
parser = text2html.HTML_PARSER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue