~paolorotolo/software-center/fix-for-963309

« back to all changes in this revision

Viewing changes to test/test_pyflakes.py

  • Committer: Danny Tamez
  • Date: 2012-01-19 16:17:34 UTC
  • mfrom: (2682 trunk)
  • mto: This revision was merged to the branch mainline in revision 2683.
  • Revision ID: danny.tamez@canonical.com-20120119161734-8viwvv83ph9d4kfx
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
import subprocess
 
4
import unittest
 
5
 
 
6
class TestPyflakesClean(unittest.TestCase):
 
7
    """ ensure that the tree is pyflakes clean """
 
8
 
 
9
    def test_pyflakes_clean(self):
 
10
        self.assertEqual(subprocess.call(["pyflakes",".."]), 0)
 
11
 
 
12
 
 
13
if __name__ == "__main__":
 
14
    import logging
 
15
    logging.basicConfig(level=logging.DEBUG)
 
16
    unittest.main()