def METHOD_NAME(self, mock_query):
    valid_term_1 = "Here is an ask_cfpb query that is exactly,"
    valid_term_2 = " like 100 percent, 75 characters."
    overage = " This is overage text that should not appear in the query"
    too_long_term = valid_term_1 + valid_term_2 + overage
    mock_query.cleaned_data = {"term": too_long_term}
    self.assertEqual(
        valid_term_1 + valid_term_2,
        AutocompleteForm.clean_term(mock_query),
    )