diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-07-31 18:57:10 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-07-31 18:57:10 +0000 |
commit | d7569a84b94ab304a1b7f353ea71c15061ebd5d4 (patch) | |
tree | 3845f54c9c5767ab2bb003576d7e0a6e813a007e /ipalib/tests/test_base.py | |
parent | bc1675dc3853748064dbf1485bf58bce0e344add (diff) | |
download | freeipa.git-d7569a84b94ab304a1b7f353ea71c15061ebd5d4.tar.gz freeipa.git-d7569a84b94ab304a1b7f353ea71c15061ebd5d4.tar.xz freeipa.git-d7569a84b94ab304a1b7f353ea71c15061ebd5d4.zip |
31: Renamed exceptions.py to errors.py
Diffstat (limited to 'ipalib/tests/test_base.py')
-rw-r--r-- | ipalib/tests/test_base.py | 10 |
1 files changed, 5 insertions, 5 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 |