'Get api sample of key pairs post request.'

def _check_keypairs_post(self, **kwargs):

    key_name = kwargs.pop('kp_name', None)
    if (not key_name):
        key_name = ('keypair-' + uuids.fake)
    subs = dict(keypair_name=key_name, **kwargs)
    response = self._do_post('os-keypairs', 'keypairs-post-req', subs)
    subs = {'keypair_name': key_name}
    self._verify_response('keypairs-post-resp', subs, response, self.expected_post_status_code)
    return key_name
