'Check many results for each line.
:param local_bear:       The local bear to check with.
:param lines:            The lines to check. (List of strings)
:param results_num:      The expected list of many results each line.
:param filename:         The filename, if it matters.
:param force_linebreaks: Whether to append newlines at each line
if needed. (Bears expect a \n for every line)
:param create_tempfile:  Whether to save lines in tempfile if needed.
:param tempfile_kwargs:  Kwargs passed to tempfile.mkstemp().
:param settings:         A dictionary of keys and values (both strings)
from which settings will be created that will
be made available for the tested bear.'

def check_line_result_count(self, local_bear, lines, results_num, filename=None, force_linebreaks=True, create_tempfile=True, tempfile_kwargs={}, settings={}):

    modified_lines = []
    for line in lines:
        stripped_line = line.strip()
        if ((stripped_line == '') or stripped_line.startswith('#')):
            continue
        modified_lines.append(line)
    for (line, num) in zip(modified_lines, results_num):
        bear_output = get_results(local_bear, [line], filename=filename, force_linebreaks=force_linebreaks, create_tempfile=create_tempfile, tempfile_kwargs=tempfile_kwargs, settings=settings)
        self.assertEqual(num, len(bear_output))
