Mercurial > repos > yufei-luo > s_mart
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 17:b0e8584489e6 | 18:94ab73e8a190 |
|---|---|
| 1 import unittest | |
| 2 import os | |
| 3 from SMART.Java.Python.misc import Utils | |
| 4 | |
| 5 class Test_F_mappingToCoordinates(unittest.TestCase): | |
| 6 | |
| 7 | |
| 8 def setUp(self): | |
| 9 self._inputFileName = 'inputMTC.sam' | |
| 10 self._outputFileName = 'outputGff.gff3' | |
| 11 self._expOutputFileName = '../TestFiles/expOutputGff.gff3' | |
| 12 | |
| 13 def tearDown(self): | |
| 14 os.remove(self._outputFileName) | |
| 15 | |
| 16 def test_run_default_option(self): | |
| 17 cmd = 'python ../mappingToCoordinates.py -i ../TestFiles/%s -f sam -o %s -v 0' % (self._inputFileName, self._outputFileName) | |
| 18 os.system(cmd) | |
| 19 self.assertTrue(Utils.diff(self._outputFileName, self._expOutputFileName)) | |
| 20 | |
| 21 if __name__ == "__main__": | |
| 22 unittest.main() |
