'Return true a given string is somewhere in a list of strings'

def _is_substring_in_list(self, messages_list, expected_substring):

    for message in messages_list:
        if (expected_substring in message):
            return True
    return False
