

def test_set_new_mapping(self):
    arglist = [identity_fakes.protocol_id, '--identity-provider', identity_fakes.idp_id, '--mapping', identity_fakes.mapping_id]
    verifylist = [('identity_provider', identity_fakes.idp_id), ('federation_protocol', identity_fakes.protocol_id), ('mapping', identity_fakes.mapping_id)]
    parsed_args = self.check_parser(self.cmd, arglist, verifylist)
    (columns, data) = self.cmd.take_action(parsed_args)
    self.protocols_mock.update.assert_called_with(identity_fakes.idp_id, identity_fakes.protocol_id, identity_fakes.mapping_id)
    collist = ('id', 'identity_provider', 'mapping')
    self.assertEqual(data, columns)
    datalist = (identity_fakes.protocol_id, identity_fakes.idp_id, identity_fakes.mapping_id_updated)
    self.assertEqual(datalist, data)

dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/identity/v3/test_protocol.py TestProtocolSet.test_set_new_mapping/VarMisuse@123/190 `collist`->`data`