root/galaxy-central/eggs/GeneTrack-2.0.0_beta_1_dev_48da9e998f0caf01c5be731e926f4b0481f658f0-py2.6.egg/tests/script_tests.py

リビジョン 3, 0.7 KB (コミッタ: kohda, 14 年 前)

Install Unix tools  http://hannonlab.cshl.edu/galaxy_unix_tools/galaxy.html

行番号 
1import os, unittest, random
2
3import testlib
4from genetrack import conf, util, logger, scripts
5
6class ScriptTests( unittest.TestCase ):
7    """
8    Testing scripts
9    """
10   
11    def test_tabs2genetrack(self):
12        "Testing bed2genetrack transformation"
13        from genetrack.scripts import tabs2genetrack
14
15        inpfile = conf.testdata('short-data.bed', verify=True)
16        outfile = conf.tempdata('short-data.genetrack')
17        tabs2genetrack.transform(inpfile, outfile, format='BED')
18
19def get_suite():
20    "Returns the testsuite"
21    tests  = [
22        ScriptTests,
23    ]
24
25    return testlib.make_suite( tests )
26
27if __name__ == '__main__':
28    suite = get_suite()
29    logger.disable('DEBUG')
30    unittest.TextTestRunner(verbosity=2).run( suite )
31
32   
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。