summaryrefslogtreecommitdiff
path: root/openstackclient/tests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/tests/utils.py')
-rw-r--r--openstackclient/tests/utils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/openstackclient/tests/utils.py b/openstackclient/tests/utils.py
index 38d47250..25f98525 100644
--- a/openstackclient/tests/utils.py
+++ b/openstackclient/tests/utils.py
@@ -23,6 +23,10 @@ import testtools
from openstackclient.tests import fakes
+class ParserException(Exception):
+ pass
+
+
class TestCase(testtools.TestCase):
def setUp(self):
testtools.TestCase.setUp(self)
@@ -84,7 +88,7 @@ class TestCommand(TestCase):
try:
parsed_args = cmd_parser.parse_args(args)
except SystemExit:
- raise Exception("Argument parse failed")
+ raise ParserException("Argument parse failed")
for av in verify_args:
attr, value = av
if attr: