Revision 1c999b11 kamaki/clients/tests.py
b/kamaki/clients/tests.py | ||
---|---|---|
1087 | 1087 |
parser = init_parser() |
1088 | 1088 |
args, argv = parser.parse_known_args() |
1089 | 1089 |
|
1090 |
if len(argv) > 2 or getattr(args,'help'): |
|
1091 |
raise Exception('\tusage: tests.py [group][command]')
|
|
1090 |
if len(argv) > 2 or getattr(args,'help') or len(argv) < 1:
|
|
1091 |
raise Exception('\tusage: tests.py <group> [command]')
|
|
1092 | 1092 |
suiteFew = unittest.TestSuite() |
1093 | 1093 |
|
1094 | 1094 |
if len(argv) == 0 or argv[0] == 'pithos': |
1095 |
if len(argv) <= 1:
|
|
1095 |
if len(argv) == 1:
|
|
1096 | 1096 |
suiteFew.addTest(unittest.makeSuite(testPithos)) |
1097 | 1097 |
else: |
1098 | 1098 |
suiteFew.addTest(testPithos('test_'+argv[1])) |
1099 | 1099 |
if len(argv) == 0 or argv[0] == 'cyclades': |
1100 |
if len(argv) <= 1:
|
|
1100 |
if len(argv) == 1:
|
|
1101 | 1101 |
#suiteFew.addTest(unittest.makeSuite(testCyclades)) |
1102 | 1102 |
suiteFew.addTest(testCyclades('test_000')) |
1103 | 1103 |
else: |
Also available in: Unified diff