Fix test
This commit is contained in:
parent
27f5fd5a9d
commit
a3df5754f9
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ class TestText2Bbcode(TestCase):
|
||||||
mocked_match = mock.Mock()
|
mocked_match = mock.Mock()
|
||||||
mocked_match.groups.return_value = ["cmd", "text"]
|
mocked_match.groups.return_value = ["cmd", "text"]
|
||||||
|
|
||||||
self.assertEqual("[mxp=send cmd=cmd]text[/mxp]", parser.sub_mxp_links(mocked_match))
|
self.assertEqual("[url=send cmd=cmd]text[/url]", parser.sub_mxp_links(mocked_match))
|
||||||
|
|
||||||
def test_sub_text(self):
|
def test_sub_text(self):
|
||||||
parser = text2bbcode.BBCODE_PARSER
|
parser = text2bbcode.BBCODE_PARSER
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue