summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration/test_caless.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_integration/test_caless.py')
-rw-r--r--ipatests/test_integration/test_caless.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/ipatests/test_integration/test_caless.py b/ipatests/test_integration/test_caless.py
index fdc4fc8ef..667e2b3b1 100644
--- a/ipatests/test_integration/test_caless.py
+++ b/ipatests/test_integration/test_caless.py
@@ -35,6 +35,8 @@ from ipatests.test_integration import tasks
_DEFAULT = object()
+assert_error = tasks.assert_error
+
def get_install_stdin(cert_passwords=()):
lines = [
@@ -56,15 +58,6 @@ def get_replica_prepare_stdin(cert_passwords=()):
return '\n'.join(lines + [''])
-def assert_error(result, stderr_text, returncode=None):
- "Assert that `result` command failed and its stderr contains `stderr_text`"
- assert stderr_text in result.stderr_text, result.stderr_text
- if returncode:
- assert result.returncode == returncode
- else:
- assert result.returncode > 0
-
-
class CALessBase(IntegrationTest):
@classmethod
def install(cls, mh):