summaryrefslogtreecommitdiff
path: root/test/test.py
blob: d11e1cbf3f261b6045fa78991a98b4b380c49e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import sys
import unittest

import tests.ApiTest

if __name__ == '__main__':
    suite = unittest.TestLoader().loadTestsFromModule(tests.ApiTest) \
            if len(sys.argv) < 2 \
               else unittest.TestLoader().loadTestsFromNames(
                       ['tests.ApiTest.ApiTestCase.test_%sCases' % (s)
                        for s in sys.argv[1:]])
    unittest.TextTestRunner(verbosity=2).run(suite)