def test_replaceEscapedChar(self): source = "\\* this is a bulletpoint" target = "* this is a bulletpoint" result = geeknoteConvertorLib.replaceChar(source, "\\*", "*") self.assertEqual(target, result)
def test_replaceCharMutliple(self): source = "** this is a bulletpoint" target = "## this is a bulletpoint" result = geeknoteConvertorLib.replaceChar(source, "*", "#") self.assertEqual(target, result)