'Validating that the yielded results are correct.'

def test_output(self):

    affected_code = (SourceRange.from_values(self.filename, start_line=111, start_column=1, end_line=143, end_column=2),)
    expected_result = Result(self.bear, "The    function    'levels(int,    int,    int)'    should    be    simplified.    Its    cyclomatic    complexity    is    10    which    exceeds    maximal    recommended    value    of    8.", affected_code=affected_code)
    with execute_bear(self.bear, self.filename, self.file, 8) as out:
        self.assertEqual(len(out), 1)
    out[0].additional_info = ''
    self.assertEqual(out[0], expected_result)
