File: test_overall.py

package info (click to toggle)
slixmpp 1.13.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,516 kB
  • sloc: python: 41,715; xml: 1,211; makefile: 135
file content (22 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os
import re
import sys
import unittest
import compileall


class TestOverall(unittest.TestCase):

    """
    Test overall package health by compiling and checking
    code style.
    """

    def testModules(self):
        """Testing all modules by compiling them"""
        src = '.%sslixmpp' % os.sep
        rx = re.compile('/[.]svn|.*26.*')
        self.assertTrue(compileall.compile_dir(src, rx=rx, quiet=True))


suite = unittest.TestLoader().loadTestsFromTestCase(TestOverall)