summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-24 21:54:36 -0700
committerLance Stout <lancestout@gmail.com>2011-08-24 22:09:02 -0700
commitede59ab40e896293adba1278c42463fd8a5ba0fa (patch)
tree674d619648a97ea2bfea3d77199392d4ed750435 /tests
parent2a8082407656bf78a487afcf20017b10ca6475cc (diff)
downloadslixmpp-ede59ab40e896293adba1278c42463fd8a5ba0fa.tar.gz
slixmpp-ede59ab40e896293adba1278c42463fd8a5ba0fa.tar.bz2
slixmpp-ede59ab40e896293adba1278c42463fd8a5ba0fa.tar.xz
slixmpp-ede59ab40e896293adba1278c42463fd8a5ba0fa.zip
Clean and get setup.py working once and for all.
Fixes: README.rst now included Double line spacing removed from long_description Source package now includes tests, examples, etc using Manifest.in README.rst typos fixed Added README.rst section on installing dnspython for Python3 Version bumped to RC2 Version is now taken from sleekxmpp.version.__version__ without having to pull in the entire library Added 'test' command for setup.py Simplified testall.py Docs build cleanly from source package after installation
Diffstat (limited to 'tests')
-rw-r--r--tests/test_overall.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/test_overall.py b/tests/test_overall.py
new file mode 100644
index 00000000..4821f11d
--- /dev/null
+++ b/tests/test_overall.py
@@ -0,0 +1,29 @@
+import os
+import re
+import sys
+import unittest
+import tabnanny
+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 = '..%ssleekxmpp' % os.sep
+ if sys.version_info < (3, 0):
+ rx = re.compile('/[.]svn')
+ else:
+ rx = re.compile('/[.]svn|.*26.*')
+ self.failUnless(compileall.compile_dir(src, rx=rx, quiet=True))
+
+ def testTabNanny(self):
+ """Testing that indentation is consistent"""
+ self.failIf(tabnanny.check('..%ssleekxmpp' % os.sep))
+
+
+suite = unittest.TestLoader().loadTestsFromTestCase(TestOverall)