

def test_create_vol(self):
    tenant = fakes.tenants['foo']
    app = self.get_app()
    headers = {
        'Category': 'storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind"',
        'X-OCCI-Attribute': 'occi.storage.size=1',
    }
    req = self._build_req('/storage', tenant['id'], method='POST', headers=headers)
    resp = req.get_response(app)
    expected = [('X-OCCI-Location', utils.join_url((self.application_url + '/'), ('storage/%s' % 'foo')))]
    self.assertEqual(200, resp.status_code)
    self.assertExpectedResult(expected, resp)
    app.assertDefaults(resp)

dataset/ETHPy150Open openstack/ooi/ooi/tests/middleware/test_storage_controller.py TestStorageController.test_create_vol/VarMisuse@121/197 `self`->`app`