You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
britney2-ubuntu/tests/test_pycodestyle.py

13 lines
340 B

import unittest
import pep8
class TestCodeFormat(unittest.TestCase):
def test_conformance(self):
"""Test that we conform to PEP-8."""
style = pep8.StyleGuide()
result = style.check_files('.')
self.assertEqual(result.total_errors, 0,
"Found code style errors (and warnings).")