'Tests raises BadRequest for supplied image size that is too big'

def test_add_image_size_header_too_big(self):

    fixture_headers = {'x-image-meta-size': (CONF.image_size_cap + 1), 'x-image-meta-name': 'fake    image    #3'}
    req = webob.Request.blank('/images')
    req.method = 'POST'
    for (k, v) in six.iteritems(fixture_headers):
        req.headers[k] = v
    res = req.get_response(self.api)
    self.assertEqual(http_client.BAD_REQUEST, res.status_int)
