summaryrefslogtreecommitdiffstats
path: root/ipalib/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/tests')
-rw-r--r--ipalib/tests/test_base.py10
-rw-r--r--ipalib/tests/test_plugable.py10
2 files changed, 10 insertions, 10 deletions
diff --git a/ipalib/tests/test_base.py b/ipalib/tests/test_base.py
index 8f6a0313..da9de7a0 100644
--- a/ipalib/tests/test_base.py
+++ b/ipalib/tests/test_base.py
@@ -21,7 +21,7 @@
Unit tests for `ipalib.base` module.
"""
-from ipalib import base, exceptions, crud
+from ipalib import base, errors, crud
def read_only(obj, name):
@@ -129,7 +129,7 @@ class test_NameSpace:
raised = False
try:
setattr(ns, key, value)
- except exceptions.SetError:
+ except errors.SetError:
raised = True
assert raised
assert getattr(ns, key, None) != value
@@ -206,7 +206,7 @@ def test_Attribute():
raised = False
try:
i.obj = u
- except exceptions.TwiceSetError:
+ except errors.TwiceSetError:
raised = True
assert raised
@@ -307,14 +307,14 @@ class test_Registrar():
raised = False
try:
r(user())
- except exceptions.RegistrationError:
+ except errors.RegistrationError:
raised = True
# Check that exception is raised trying to register class of wrong base:
raised = False
try:
r(wrong_base)
- except exceptions.RegistrationError:
+ except errors.RegistrationError:
raised = True
assert raised
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py
index 1ba02113..f0bdeb4a 100644
--- a/ipalib/tests/test_plugable.py
+++ b/ipalib/tests/test_plugable.py
@@ -21,7 +21,7 @@
Unit tests for `ipalib.plugable` module.
"""
-from ipalib import plugable, exceptions
+from ipalib import plugable, errors
def test_Registrar():
@@ -56,7 +56,7 @@ def test_Registrar():
raised = False
try:
r(plugin3)
- except exceptions.SubclassError:
+ except errors.SubclassError:
raised = True
assert raised
@@ -74,7 +74,7 @@ def test_Registrar():
raised = False
try:
r(plugin1)
- except exceptions.DuplicateError:
+ except errors.DuplicateError:
raised = True
assert raised
@@ -88,7 +88,7 @@ def test_Registrar():
raised = False
try:
r(plugin1)
- except exceptions.OverrideError:
+ except errors.OverrideError:
raised = True
assert raised
@@ -104,7 +104,7 @@ def test_Registrar():
raised = False
try:
r(plugin2, override=True)
- except exceptions.MissingOverrideError:
+ except errors.MissingOverrideError:
raised = True
assert raised