def _match_lines_random(self, lines2, match_func):
lines2 = self._getlines(lines2)<EOL>for line in lines2:<EOL><INDENT>for x in self.lines:<EOL><INDENT>if line == x or match_func(x, line):<EOL><INDENT>self._log("<STR_LIT>", repr(line))<EOL>break<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self._log("<STR_LIT>" % line)<EOL>raise ValueError(self._log_text)<EOL><DEDENT><DEDENT>
Check lines exist in the output.

        The argument is a list of lines which have to occur in the output, in
        any order.  Each line can contain glob whildcards.