Import the module not the class
As requested during review 226922. Change-Id: Ic5222141e247ce33cf5dbee66667cee3040e1cc3
This commit is contained in:
parent
266ecf57f5
commit
c49c9df105
@ -14,7 +14,7 @@ import json
|
|||||||
|
|
||||||
from openstackclient.identity.v3 import credential
|
from openstackclient.identity.v3 import credential
|
||||||
from openstackclient.tests.identity.v3 import fakes as identity_fakes
|
from openstackclient.tests.identity.v3 import fakes as identity_fakes
|
||||||
from openstackclient.tests.utils import ParserException
|
from openstackclient.tests import utils
|
||||||
|
|
||||||
|
|
||||||
class TestCredential(identity_fakes.TestIdentityv3):
|
class TestCredential(identity_fakes.TestIdentityv3):
|
||||||
@ -55,7 +55,7 @@ class TestCredentialSet(TestCredential):
|
|||||||
identity_fakes.credential_id,
|
identity_fakes.credential_id,
|
||||||
]
|
]
|
||||||
|
|
||||||
self.assertRaises(ParserException,
|
self.assertRaises(utils.ParserException,
|
||||||
self.check_parser, self.cmd, arglist, [])
|
self.check_parser, self.cmd, arglist, [])
|
||||||
|
|
||||||
def test_credential_set_missing_user(self):
|
def test_credential_set_missing_user(self):
|
||||||
@ -65,7 +65,7 @@ class TestCredentialSet(TestCredential):
|
|||||||
identity_fakes.credential_id,
|
identity_fakes.credential_id,
|
||||||
]
|
]
|
||||||
|
|
||||||
self.assertRaises(ParserException,
|
self.assertRaises(utils.ParserException,
|
||||||
self.check_parser, self.cmd, arglist, [])
|
self.check_parser, self.cmd, arglist, [])
|
||||||
|
|
||||||
def test_credential_set_missing_type(self):
|
def test_credential_set_missing_type(self):
|
||||||
@ -75,7 +75,7 @@ class TestCredentialSet(TestCredential):
|
|||||||
identity_fakes.credential_id,
|
identity_fakes.credential_id,
|
||||||
]
|
]
|
||||||
|
|
||||||
self.assertRaises(ParserException,
|
self.assertRaises(utils.ParserException,
|
||||||
self.check_parser, self.cmd, arglist, [])
|
self.check_parser, self.cmd, arglist, [])
|
||||||
|
|
||||||
def test_credential_set_missing_data(self):
|
def test_credential_set_missing_data(self):
|
||||||
@ -85,7 +85,7 @@ class TestCredentialSet(TestCredential):
|
|||||||
identity_fakes.credential_id,
|
identity_fakes.credential_id,
|
||||||
]
|
]
|
||||||
|
|
||||||
self.assertRaises(ParserException,
|
self.assertRaises(utils.ParserException,
|
||||||
self.check_parser, self.cmd, arglist, [])
|
self.check_parser, self.cmd, arglist, [])
|
||||||
|
|
||||||
def test_credential_set_valid(self):
|
def test_credential_set_valid(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user