def _first_index(self, s):
        self.set_index(0)
def test_base_class_accept_raises_error(self):
        with self.assertRaisesRegex(
            NotImplementedError,
            'Subclasses of BaseSuggestion should implement accept.'):
            self.base_suggestion.accept()