def testUnicode(self): res = segment.highlight_doc(testStrings.unicode_doc, testStrings.unicode_query) assert res == testStrings.unicode_result, self.prettyPrint(res,testStrings.unicode_result)
def testTwoSoups(self): res = segment.highlight_doc(testStrings.twosoups_doc, testStrings.twosoups_query) assert res == testStrings.twosoups_result, self.prettyPrint(res, testStrings.twosoups_result)
def testWholeDocumentMatches(self): res = segment.highlight_doc(testStrings.whole_doc, testStrings.whole_query) assert res == testStrings.whole_result, self.prettyPrint(res, testStrings.whole_result)
def testQueryNotFound(self): res = segment.highlight_doc(testStrings.notfound_doc, testStrings.notfound_query) assert res == testStrings.notfound_result, self.prettyPrint(res, testStrings.notfound_result)
def testGottsRoadSide(self): res = segment.highlight_doc(testStrings.cheeseburger_doc, testStrings.cheeseburger_query) assert res == testStrings.cheeseburger_result, self.prettyPrint(res, testStrings.cheeseburger_result)
def testPizzaHacker(self): res = segment.highlight_doc(testStrings.pizzahacker, testStrings.pizzahacker_query) assert res == testStrings.pizzahacker_result, self.prettyPrint(res, testStrings.pizzahacker_result)
def testGiven(self): res = segment.highlight_doc(testStrings.given_doc, testStrings.given_query) assert res == testStrings.given_result, self.prettyPrint(res, testStrings.given_result)
def testRambling(self): res = segment.highlight_doc(testStrings.rambler_doc, testStrings.rambler_query) assert res == testStrings.rambler_result, self.prettyPrint(res, testStrings.rambler_result)
def testAllOneWord(self): res = segment.highlight_doc(testStrings.allone_doc, testStrings.allone_query) assert res == testStrings.allone_result, self.prettyPrint(res, testStrings.allone_result)