def METHOD_NAME(self, input_file_pattern, search_list, mom=False):
    """
    Assert that all the strings in 'search_list' appears in the hook
    debug file that matches input_file_pattern
    """
    input_file = None
    if mom:
        hooks_tmp_dir = self.mom_hooks_tmp_dir
        a = self.mom.listdir(path=hooks_tmp_dir, sudo=True)
    else:
        hooks_tmp_dir = self.server_hooks_tmp_dir
        a = self.du.listdir(path=hooks_tmp_dir, sudo=True)
    for item in a:
        if fnmatch.fnmatch(item, input_file_pattern):
            input_file = item
            break
    self.assertTrue(input_file is not None)
    if mom:
        ret = self.mom.cat(filename=input_file, sudo=True)
    else:
        ret = self.du.cat(filename=input_file, sudo=True)
    if ret['rc'] == 0 and len(ret['out']) > 0:
        flag = False
        if(all(x in ret['out'] for x in search_list)):
            flag = True
        self.assertTrue(flag)
    self.remove_files_match(input_file_pattern, mom)