File size: 511 Bytes
1bfe7f5
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)