Tests: test_ipagetkeytab: fix assert that is always true

Fixes:
/usr/lib/python2.7/site-packages/ipatests/test_cmdline/test_ipagetkeytab.py:116:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
Martin Basti 2015-12-14 12:21:38 +01:00 committed by Tomas Babej
parent 8b1002a18c
commit e1cb802d15

View File

@ -113,8 +113,8 @@ class test_ipagetkeytab(cmdline_test):
result = ipautil.run(new_args, None, capture_error=True)
expected = 'Keytab successfully retrieved and stored in: %s\n' % (
self.keytabname)
assert (expected in result.error_output,
'Success message not in output:\n%s' % result.error_output)
assert expected in result.error_output, (
'Success message not in output:\n%s' % result.error_output)
except ipautil.CalledProcessError as e:
assert (False)