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.
13 lines
340 B
13 lines
340 B
8 years ago
|
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).")
|