First unit tests and a tox file
This adds some first unit tests for the k_mer.klib
module. Tests are to
be run using pytest:
$ py.test
(Please make sure the package is installed, preferably using either
pip install -e .
or python setup.py develop
.)
The tests make use of collections.Counter
which is only available in
Python 2.7 and up. On Python 2.6 we automatically fall back to a backported
version.
Also included is a tox configuration with CPython 2.6 and 2.7 which runs the unit tests mentioned above in both Python environments:
$ tox
All tests pass after a small bugfix in k_mer/klib.py
which I will submit
shortly.
The package is currently not compatible with Python 3.