Mercurial > repos > yufei-luo > s_mart
comparison commons/pyRepetUnit/profilesDB/tests/Test_F_ProfilesDB4Repet.py @ 31:0ab839023fe4
Uploaded
author | m-zytnicki |
---|---|
date | Tue, 30 Apr 2013 14:33:21 -0400 |
parents | 94ab73e8a190 |
children |
comparison
equal
deleted
inserted
replaced
30:5677346472b5 | 31:0ab839023fe4 |
---|---|
1 import unittest | |
2 import os | |
3 from commons.core.utils.FileUtils import FileUtils | |
4 | |
5 class Test_F_ProfilesDB4Repet(unittest.TestCase): | |
6 | |
7 def setUp(self): | |
8 self._inputDBFile = "%s/Tools/ProfilesDB4Repet_v2.hmm" % os.environ["REPET_DATA"] | |
9 self._outputDBFile = "output.hmm" | |
10 | |
11 def tearDown(self): | |
12 os.remove(self._outputDBFile) | |
13 | |
14 def test_run_as_script(self): | |
15 cmd = "python ../ProfilesDB4Repet.py -i " + self._inputDBFile + " -o " + self._outputDBFile | |
16 os.system(cmd) | |
17 self.assertEqual(FileUtils.getNbLinesInSingleFile(self._outputDBFile), 375854) | |
18 | |
19 if __name__ == "__main__": | |
20 unittest.main() |