def METHOD_NAME(self):
    pep8opts = pycodestyle.StyleGuide(
        ignore=ignores['pep8'],
        max_line_length=100,
        format='pylint'
    ).options
    report = StringReport(pep8opts)
    failures = []
    for file in _get_files():
        checker = pycodestyle.Checker(file, options=pep8opts, report=report)
        checker.check_all()
        report = checker.report
        if report.get_file_results() > 0:
            failures.extend(report.get_failures())
            failures.append('')
    if failures:
        self.fail('{} PEP 8 Failure(s):\n'.format(report.total_errors) + '\n'.join(failures))