title: How to run unittest.main() function from other module?
body: <p>I have an API that has unit tests written inside of it. The thing is that that API can't be run as 'stand-alone' script from terminal, it has to be run from a custom framework. In that API there is a function that basicly calls <code>unittest.main()</code> but test cases are not found if the function is ran from 'outside'. Is there a common solution for this kind of problem?</p>