PlanExe / src /markdown_util /tests /test_remove_bold_formatting.py
Simon Strandgaard
Snapshot of PlanExe commit 773f9ca98123b5751e6b16be192818b572af1aa0
1bfe7f5
raw
history blame contribute delete
511 Bytes
import unittest
from src.markdown_util.remove_bold_formatting import remove_bold_formatting
class TestRemoveBoldFormatting(unittest.TestCase):
def test_remove_bold_formatting1(self):
text = "**Hello** __World__"
expected = "Hello World"
self.assertEqual(remove_bold_formatting(text), expected)
def test_remove_bold_formatting2(self):
text = "**Hello** 123 World**"
expected = "Hello 123 World**"
self.assertEqual(remove_bold_formatting(text), expected)