A module containing tests for the gff_gtf_tools module I’m using in gff_gtf_tools.py. These tests use the standard unittest package and extend the unittest.TestCase class.
module_version: | 1.0 |
---|---|
created_on: | 2013-11-27 |
Test the class and functions defined in gff_gtf_tools.py.
Each function is tested with existing and non-existent instances of the file or path type that it is designed for. We also test that providing non- string basic python objects produces string representations and doesn’t case a failure.
Initialize the framework for testing.
Define and create a new system temporary directory with the tempfile package for use as an existing directory. A range of gff and gtf files with different parameters are created in this directory to test the routines with.