URL:
https://github.com/freeipa/freeipa/pull/1345
Author: Rezney
Title: #1345: test_batch_plugin: fix py2/3 failing assertion
Action: opened
PR body:
"""
When running "test_batch_plugin" with Py2 against Py3 server we
got assertion error due to a command trying to run as bytes.
E.g.: unknown command 'b'ping''
`
E AssertionError: assert_deepequal: dict keys mismatch.
E 0000: batch: Batch ping
E missing keys = ['summary']
E extra keys = [u'error_code', u'error_kw',
u'error_name']
E expected = {'error': None,
E 'summary': Fuzzy('IPA server version .*',
<type 'unicode'>, None)}
E got = {u'error': u"unknown command
'b'ping''",
E u'error_code': 905,
E u'error_kw': {u'name':
u"b'ping'"},
E u'error_name': u'CommandError'}
E path = ('results', 0)
`
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1345/head:pr1345
git checkout pr1345