def test_highlight_doc2(self): doc = """ It's easy to find a good Chinese restaurant in the bay, but it's not that easy to find a nice decorated & clean Chinese restaurant that my dad likes to treat his friends to. And Taipan is one. I've tried both of its """ query = "chinese restaurant" print(highlight_doc(doc, query))
def test_highlight_doc3(self): doc = """ Wang's was a Chinese-Korean restaurant. """ query = "chinese restaurant" print(highlight_doc(doc, query))
def test_highlight_doc1(self): doc = """ A testcase is created by subclassing unittest.TestCase. The three individual tests are defined with methods whose names start with the letters test. This naming convention informs the test runner about which methods represent tests. """ query = "unit test" print(highlight_doc(doc, query))