'Configure the stub via HTTP.'

def install(self):

    url = (XQUEUE_STUB_URL + '/set_config')
    payload = {self._pattern: json.dumps(self._response_dict)}
    response = requests.put(url, data=payload)
    if (not response.ok):
        raise XQueueResponseFixtureError("Could    not    configure    XQueue    stub    for    queue    '{1}'.        Status    code:    {2}".format(self._pattern, self._response_dict))
