Add the 'connecting' event
[slixmpp.git] / tests / test_overall.py
blob411ebcdf246d6bd755bceddccf4b702dcb32de99
1 import os
2 import re
3 import sys
4 import unittest
5 import tabnanny
6 import compileall
8 class TestOverall(unittest.TestCase):
10 """
11 Test overall package health by compiling and checking
12 code style.
13 """
15 def testModules(self):
16 """Testing all modules by compiling them"""
17 src = '.%sslixmpp' % os.sep
18 if sys.version_info < (3, 0):
19 rx = re.compile('/[.]svn')
20 else:
21 rx = re.compile('/[.]svn|.*26.*')
22 self.failUnless(compileall.compile_dir(src, rx=rx, quiet=True))
24 def testTabNanny(self):
25 """Testing that indentation is consistent"""
26 self.failIf(tabnanny.check('..%sslixmpp' % os.sep))
29 suite = unittest.TestLoader().loadTestsFromTestCase(TestOverall)