'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.'

def fnmatch_lines_random(self, lines2):

    lines2 = self._getlines(lines2)
    for line in lines2:
        for x in self.lines:
            if ((line == x) or fnmatch(x, line)):
                self._log('matched:    ', repr(line))
                break
        else:
            self._log(('line    %r    not    found    in    output' % line))
            raise ValueError(self._log_text)
