'Update protocol\'s attribute.'

def test_update_protocols_attribute(self):

    (resp, idp_id, proto) = self._assign_protocol_to_idp(expected_status=http_client.CREATED)
    new_mapping_id = uuid.uuid4().hex
    self._create_mapping(mapping_id=new_mapping_id)
    url = ('%s/protocols/%s' % (idp_id, proto))
    url = self.base_url(suffix=url)
    body = {'mapping_id': new_mapping_id}
    resp = self.patch(url, body={'protocol': body})
    self.assertValidResponse(resp, 'protocol', dummy_validator, keys_to_check=['id', 'mapping_id'], ref={'id': proto, 'mapping_id': new_mapping_id})
