def test_find_text_person_words_o_2_found(self): name = 'name' words = (('worda', 2), ('wordb', 2)) text = 'nameworda' self.assertEqual(data.find_text_person_words(text, name, words), 9)
def test_find_text_person_words_o_minus_2_not_found(self): name = 'name' words = (('worda', -2), ('wordb', -2)) text = 'wordcname' self.assertEqual(data.find_text_person_words(text, name, words), -1)