Skip to content

Commit c49c9df

Browse files
author
Sean Perry
committed
Import the module not the class
As requested during review 226922. Change-Id: Ic5222141e247ce33cf5dbee66667cee3040e1cc3
1 parent 266ecf5 commit c49c9df

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

openstackclient/tests/identity/v3/test_credential.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from openstackclient.identity.v3 import credential
1616
from openstackclient.tests.identity.v3 import fakes as identity_fakes
17-
from openstackclient.tests.utils import ParserException
17+
from openstackclient.tests import utils
1818

1919

2020
class TestCredential(identity_fakes.TestIdentityv3):
@@ -55,7 +55,7 @@ def test_credential_set_no_options(self):
5555
identity_fakes.credential_id,
5656
]
5757

58-
self.assertRaises(ParserException,
58+
self.assertRaises(utils.ParserException,
5959
self.check_parser, self.cmd, arglist, [])
6060

6161
def test_credential_set_missing_user(self):
@@ -65,7 +65,7 @@ def test_credential_set_missing_user(self):
6565
identity_fakes.credential_id,
6666
]
6767

68-
self.assertRaises(ParserException,
68+
self.assertRaises(utils.ParserException,
6969
self.check_parser, self.cmd, arglist, [])
7070

7171
def test_credential_set_missing_type(self):
@@ -75,7 +75,7 @@ def test_credential_set_missing_type(self):
7575
identity_fakes.credential_id,
7676
]
7777

78-
self.assertRaises(ParserException,
78+
self.assertRaises(utils.ParserException,
7979
self.check_parser, self.cmd, arglist, [])
8080

8181
def test_credential_set_missing_data(self):
@@ -85,7 +85,7 @@ def test_credential_set_missing_data(self):
8585
identity_fakes.credential_id,
8686
]
8787

88-
self.assertRaises(ParserException,
88+
self.assertRaises(utils.ParserException,
8989
self.check_parser, self.cmd, arglist, [])
9090

9191
def test_credential_set_valid(self):

0 commit comments

Comments
 (0)