mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 21:47:17 +02:00
Increase coverage in evennia/utils/text2html.
This commit is contained in:
parent
14c6774225
commit
b96f9c4385
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