'Create and later fetch protocol tied to IdP.'

def test_get_head_protocol(self):

    (resp, idp_id, proto) = self._assign_protocol_to_idp(expected_status=http_client.CREATED)
    proto_id = self._fetch_attribute_from_response(resp, 'protocol')['id']
    url = ('%s/protocols/%s' % (idp_id, proto_id))
    url = self.base_url(suffix=url)
    resp = self.get(url)
    reference = {'id': proto_id}
    reference_keys = list(reference)
    self.assertValidResponse(resp, 'protocol', dummy_validator, keys_to_check=reference_keys, ref=reference)
    self.head(url, expected_status=http_client.OK)
