#!/usr/bin/env python #Copyright (C) 2009-2011 by Benedict Paten (benedictpaten@gmail.com) # #Released under the MIT license, see LICENSE.txt import unittest import sys import os from cactus.shared.test import parseCactusSuiteTestOptions from sonLib.bioio import TestStatus from sonLib.bioio import system from sonLib.bioio import getLogLevelString class TestCase(unittest.TestCase): def setUp(self): self.testNo = TestStatus.getTestSetup() self.tempFiles = [] unittest.TestCase.setUp(self) def tearDown(self): for tempFile in self.tempFiles: os.remove(tempFile) unittest.TestCase.tearDown(self) def testAPI(self): """Run all the cactusAPI CuTests, fail if any of them fail. """ system("cactusAPITests %s" % getLogLevelString()) def main(): parseCactusSuiteTestOptions() sys.argv = sys.argv[:1] unittest.main() if __name__ == '__main__': main()