# Path: glanceclient/v2/schemas.py
# class SchemaBasedModel(warlock.Model):
# class SchemaProperty(object):
# class Schema(object):
# class Controller(object):
#     def _make_custom_patch(self, new, original):
#     def patch(self):
#     def __init__(self, name, **kwargs):
# def translate_schema_properties(schema_properties):
#     def __init__(self, raw_schema):
#     def is_core_property(self, property_name):
#     def is_base_property(self, property_name):
#     def _check_property(self, property_name, allow_non_base):
#     def raw(self):
#     def __init__(self, http_client):
#     def get(self, schema_name):


import copy
import io
import json
import testtools
from urllib import parse
from glanceclient.v2 import schemas
        if isinstance(fixture[1], str):
            try:
                data = json.loads(fixture[1])
            except ValueError:
                data = io.StringIO(fixture[1])

        return FakeResponse(fixture[0], fixture[1]), data

    def get(self, *args, **kwargs):
        return self._request('GET', *args, **kwargs)

    def post(self, *args, **kwargs):
        return self._request('POST', *args, **kwargs)

    def put(self, *args, **kwargs):
        return self._request('PUT', *args, **kwargs)

    def patch(self, *args, **kwargs):
        return self._request('PATCH', *args, **kwargs)

    def delete(self, *args, **kwargs):
        return self._request('DELETE', *args, **kwargs)

    def head(self, *args, **kwargs):
        return self._request('HEAD', *args, **kwargs)


class FakeSchemaAPI(FakeAPI):
    def get(self, *args, **kwargs):
        _, raw_schema = self._request('GET', *args, **kwargs)

# Path: glanceclient/v2/schemas.py
# class SchemaBasedModel(warlock.Model):
# class SchemaProperty(object):
# class Schema(object):
# class Controller(object):
#     def _make_custom_patch(self, new, original):
#     def patch(self):
#     def __init__(self, name, **kwargs):
# def translate_schema_properties(schema_properties):
#     def __init__(self, raw_schema):
#     def is_core_property(self, property_name):
#     def is_base_property(self, property_name):
#     def _check_property(self, property_name, allow_non_base):
#     def raw(self):
#     def __init__(self, http_client):
#     def get(self, schema_name):


# Path: glanceclient/tests/utils.py
import copy
import io
import json
import testtools
from urllib import parse
from glanceclient.v2 import schemas

        if isinstance(fixture[1], str):
            try:
                data = json.loads(fixture[1])
            except ValueError:
                data = io.StringIO(fixture[1])

        return FakeResponse(fixture[0], fixture[1]), data

    def get(self, *args, **kwargs):
        return self._request('GET', *args, **kwargs)

    def post(self, *args, **kwargs):
        return self._request('POST', *args, **kwargs)

    def put(self, *args, **kwargs):
        return self._request('PUT', *args, **kwargs)

    def patch(self, *args, **kwargs):
        return self._request('PATCH', *args, **kwargs)

    def delete(self, *args, **kwargs):
        return self._request('DELETE', *args, **kwargs)

    def head(self, *args, **kwargs):
        return self._request('HEAD', *args, **kwargs)


class FakeSchemaAPI(FakeAPI):
    def get(self, *args, **kwargs):
        _, raw_schema = self._request('GET', *args, **kwargs)

        return schemas.Schema(raw_schema)