view 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 source

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