add first unit test, 'setup.py test' support

This commit is contained in:
Brian Warner 2015-02-10 01:05:15 -08:00
parent d782a8b63b
commit c14749fae0
4 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -22,6 +22,7 @@ var/
.installed.cfg
*.egg
MANIFEST
.eggs
# PyInstaller
# Usually these files are written by a python script from a template

View File

@ -20,5 +20,6 @@ setup(name="wormhole-sync",
package_dir={"": "src"},
packages=["wormhole"],
install_requires=["spake2"],
test_suite="wormhole.test",
cmdclass=commands,
)

View File

View File

@ -0,0 +1,6 @@
import unittest
class Import(unittest.TestCase):
def test_import(self):
import wormhole
self.assertTrue(len(wormhole.__version__))