Mercurial > repos > yufei-luo > s_mart
diff SMART/Java/Python/test/Test_F_mappingToCoordinates.py @ 18:94ab73e8a190
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 29 Apr 2013 03:20:15 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SMART/Java/Python/test/Test_F_mappingToCoordinates.py Mon Apr 29 03:20:15 2013 -0400 @@ -0,0 +1,22 @@ +import unittest +import os +from SMART.Java.Python.misc import Utils + +class Test_F_mappingToCoordinates(unittest.TestCase): + + + def setUp(self): + self._inputFileName = 'inputMTC.sam' + self._outputFileName = 'outputGff.gff3' + self._expOutputFileName = '../TestFiles/expOutputGff.gff3' + + def tearDown(self): + os.remove(self._outputFileName) + + def test_run_default_option(self): + cmd = 'python ../mappingToCoordinates.py -i ../TestFiles/%s -f sam -o %s -v 0' % (self._inputFileName, self._outputFileName) + os.system(cmd) + self.assertTrue(Utils.diff(self._outputFileName, self._expOutputFileName)) + +if __name__ == "__main__": + unittest.main()