def METHOD_NAME(self):
    """
    Test check_regression with multiple results
    """
    def mock_parse_log(log):
        return 'test-a,120,100,20,0,0\ntest-b,10,5,3,2,1'
    parse_log_backup = check.count.parse_log
    check.count.parse_log = mock_parse_log
    m_open = mock_open()
    open_name = 'util.open'
    with patch(open_name, m_open, create=True):
        check.check_regression('pkgdir', False, -1)
    check.count.parse_log = parse_log_backup
    exp_call = unittest.mock.call().write('Package : test-a\n'
                                          'Total : 120\n'
                                          'Pass : 100\n'
                                          'Fail : 20\n'
                                          'Skip : 0\n'
                                          'XFail : 0\n'
                                          'Package : test-b\n'
                                          'Total : 10\n'
                                          'Pass : 5\n'
                                          'Fail : 3\n'
                                          'Skip : 2\n'
                                          'XFail : 1\n')
    self.assertIn(exp_call, m_open.mock_calls)