~aptdaemon-developers/aptdaemon/1.x

« back to all changes in this revision

Viewing changes to tests/test_pep8.py

  • Committer: Sebastian Heinlein
  • Date: 2012-12-29 23:41:16 UTC
  • mfrom: (883.1.26 pep8)
  • Revision ID: devel@glatzor.de-20121229234116-nd390n01ut2fcfce
PEP8 fixes and test for the test suite

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
21
# Licensed under the GNU General Public License Version 2
22
22
 
23
 
__author__  = "Sebastian Heinlein <devel@glatzor.de>"
 
23
__author__ = "Sebastian Heinlein <devel@glatzor.de>"
24
24
 
25
25
import subprocess
26
26
import unittest
32
32
        """Check if the source code matches the PEP8 style conventions."""
33
33
        subprocess.check_call(["pep8", "--statistics", "--show-source",
34
34
                               "--show-pep8", "--exclude", "pkenums.py",
35
 
                               "aptdaemon"])
 
35
                               "aptdaemon", "tests"])
36
36
 
37
37
 
38
38
if __name__ == "__main__":
39
39
    unittest.main()
40