diff options
-rw-r--r-- | tests/run_test.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/run_test.py b/tests/run_test.py index af4d9f5..0a1094a 100644 --- a/tests/run_test.py +++ b/tests/run_test.py @@ -35,15 +35,13 @@ class MeetBotTest(unittest.TestCase): -if __name__ == '__main__': - os.chdir(os.path.join(os.path.dirname(__file__), '.')) - unittest.main() - - - - - - - +if __name__ == '__main__': + if len(sys.argv) <= 1: + os.chdir(os.path.join(os.path.dirname(__file__), '.')) + unittest.main() + else: + for testname in sys.argv[1:]: + print testname + MeetBotTest(methodName='test_'+testname).debug() |