Mercurial > repos > yufei-luo > s_mart
diff SMART/Java/Python/test/Test_F_mappingToCoordinates.py @ 31:0ab839023fe4
Uploaded
author | m-zytnicki |
---|---|
date | Tue, 30 Apr 2013 14:33:21 -0400 |
parents | 94ab73e8a190 |
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 Tue Apr 30 14:33:21 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()