def test_keywords_multiplier(self): f = File() f.get_keyword_list(self.keyword_file) r = Rank(f.keywords_list) for keyword in f.keywords_list : keyword, multiplier = r.get_multiplier(keyword) # Ending assertion, assuming that if it made it this far then it passed the loop and function self.assertTrue(True)
def __init__(self, stop_words): self.rank = Rank(stop_words) self.index = Index(stop_words)
def setUp(self): """ Setup ranker that will be subjected to the tests. """ self.rank = Rank(sample_stop_words())