summaryrefslogtreecommitdiffstats
path: root/tests/test_ipalib/test_backend.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-04-23 14:51:59 +0200
committerRob Crittenden <rcritten@redhat.com>2009-04-23 10:29:14 -0400
commit7d0bd4b8951ef7894668ad3c63607769e208c9d0 (patch)
tree25cfb046e3f16814d66465c72ce5a0cbe00a00fd /tests/test_ipalib/test_backend.py
parent596d410471672eac0e429c53d2f28ff6ea43d867 (diff)
downloadfreeipa-7d0bd4b8951ef7894668ad3c63607769e208c9d0.tar.gz
freeipa-7d0bd4b8951ef7894668ad3c63607769e208c9d0.tar.xz
freeipa-7d0bd4b8951ef7894668ad3c63607769e208c9d0.zip
Rename errors2.py to errors.py. Modify all affected files.
Diffstat (limited to 'tests/test_ipalib/test_backend.py')
-rw-r--r--tests/test_ipalib/test_backend.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_ipalib/test_backend.py b/tests/test_ipalib/test_backend.py
index 798e93de8..a7c80f5cb 100644
--- a/tests/test_ipalib/test_backend.py
+++ b/tests/test_ipalib/test_backend.py
@@ -26,7 +26,7 @@ from tests.util import ClassChecker, raises, create_test_api
from tests.data import unicode_str
from ipalib.request import context, Connection
from ipalib.frontend import Command
-from ipalib import backend, plugable, errors2, base
+from ipalib import backend, plugable, errors, base
@@ -181,7 +181,7 @@ class test_Executioner(ClassChecker):
class good(Command):
def execute(self):
- raise errors2.ValidationError(
+ raise errors.ValidationError(
name='nurse',
error=u'Not naughty!',
)
@@ -209,7 +209,7 @@ class test_Executioner(ClassChecker):
# Test that CommandError is raised:
conn = Connection('The connection.', Disconnect())
context.someconn = conn
- e = raises(errors2.CommandError, o.execute, 'nope')
+ e = raises(errors.CommandError, o.execute, 'nope')
assert e.name == 'nope'
assert conn.disconnect.called is True # Make sure destroy_context() was called
assert context.__dict__.keys() == []
@@ -235,7 +235,7 @@ class test_Executioner(ClassChecker):
# Test with good command:
conn = Connection('The connection.', Disconnect())
context.someconn = conn
- e = raises(errors2.ValidationError, o.execute, 'good')
+ e = raises(errors.ValidationError, o.execute, 'good')
assert e.name == 'nurse'
assert e.error == u'Not naughty!'
assert conn.disconnect.called is True # Make sure destroy_context() was called
@@ -244,7 +244,7 @@ class test_Executioner(ClassChecker):
# Test with bad command:
conn = Connection('The connection.', Disconnect())
context.someconn = conn
- e = raises(errors2.InternalError, o.execute, 'bad')
+ e = raises(errors.InternalError, o.execute, 'bad')
assert conn.disconnect.called is True # Make sure destroy_context() was called
assert context.__dict__.keys() == []