def run_check(self, path):
result = pycodestyle.StyleGuide().check_files(paths=[path])<EOL>if result.total_errors != <NUM_LIT:0>:<EOL><INDENT>self.assertEqual(<EOL>result.total_errors, <NUM_LIT:0>,<EOL>"<STR_LIT>")<EOL><DEDENT>
Common method to run the pep8 test.