aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/t_stringattr.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/t_stringattr.py')
-rwxr-xr-xsrc/tests/t_stringattr.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/t_stringattr.py b/src/tests/t_stringattr.py
index 281c8726f629..5672a0f2006b 100755
--- a/src/tests/t_stringattr.py
+++ b/src/tests/t_stringattr.py
@@ -28,9 +28,7 @@ realm = K5Realm(start_kadmind=True, create_host=False, get_creds=False)
realm.prep_kadmin()
-out = realm.run_kadmin(['getstrs', 'user'])
-if '(No string attributes.)' not in out:
- fail('Empty attribute query')
+realm.run_kadmin(['getstrs', 'user'], expected_msg='(No string attributes.)')
realm.run_kadmin(['setstr', 'user', 'attr1', 'value1'])
realm.run_kadmin(['setstr', 'user', 'attr2', 'value2'])