18
|
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()
|