# Path: glanceclient/tests/unit/v2/base.py
# class BaseController(testtools.TestCase):
# class BaseResourceTypeController(BaseController):
#     def __init__(self, api, schema_api, controller_class):
#     def _assertRequestId(self, obj):
#     def list(self, *args, **kwargs):
#     def get_associated_image_tasks(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def create(self, *args, **kwargs):
#     def create_multiple(self, *args, **kwargs):
#     def update(self, *args, **properties):
#     def delete(self, *args):
#     def delete_all(self, *args):
#     def deactivate(self, *args):
#     def reactivate(self, *args):
#     def upload(self, *args, **kwargs):
#     def data(self, *args, **kwargs):
#     def delete_locations(self, *args):
#     def add_location(self, *args, **kwargs):
#     def update_location(self, *args, **kwargs):
#     def associate(self, *args, **kwargs):
#     def deassociate(self, *args):
#     def image_import(self, *args):
#     def __init__(self, api, schema_api, controller_class):
#     def get(self, *args, **kwargs):
# 
# Path: glanceclient/tests/utils.py
# class FakeAPI(object):
# class FakeSchemaAPI(FakeAPI):
# class RawRequest(object):
# class FakeResponse(object):
# class TestCase(testtools.TestCase):
# class FakeTTYStdout(io.StringIO):
# class FakeNoTTYStdout(FakeTTYStdout):
#     def __init__(self, fixtures):
#     def _request(self, method, url, headers=None, data=None,
#                  content_length=None):
#     def get(self, *args, **kwargs):
#     def post(self, *args, **kwargs):
#     def put(self, *args, **kwargs):
#     def patch(self, *args, **kwargs):
#     def delete(self, *args, **kwargs):
#     def head(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def __init__(self, headers, body=None,
#                  version=1.0, status=200, reason="Ok"):
#     def getheaders(self):
#     def getheader(self, key, default):
#     def read(self, amt):
#     def __init__(self, headers=None, body=None,
#                  version=1.0, status_code=200, reason="Ok"):
#     def status(self):
#     def ok(self):
#     def read(self, amt):
#     def close(self):
#     def content(self):
#     def text(self):
#     def json(self, **kwargs):
#     def iter_content(self, chunk_size=1, decode_unicode=False):
#     def release_conn(self, **kwargs):
#     def isatty(self):
#     def write(self, data):
#     def isatty(self):
# def sort_url_by_query_keys(url):
# def build_call_record(method, url, headers, data):
#     TEST_REQUEST_BASE = {
#         'config': {'danger_mode': False},
#         'verify': True}
# 
# Path: glanceclient/v2/metadefs.py
# DEFAULT_PAGE_SIZE = 20
# SORT_DIR_VALUES = ('asc', 'desc')
# SORT_KEY_VALUES = ('created_at', 'namespace')
# class NamespaceController(object):
# class ResourceTypeController(object):
# class PropertyController(object):
# class ObjectController(object):
# class TagController(object):
#     def __init__(self, http_client, schema_client):
#     def model(self):
#     def create(self, **kwargs):
#     def update(self, namespace_name, **kwargs):
#     def get(self, namespace, **kwargs):
#     def _get(self, namespace, header=None, **kwargs):
#     def list(self, **kwargs):
#         def paginate(url):
#     def delete(self, namespace):
#     def __init__(self, http_client, schema_client):
#     def model(self):
#     def associate(self, namespace, **kwargs):
#     def deassociate(self, namespace, resource):
#     def list(self):
#     def get(self, namespace):
#     def __init__(self, http_client, schema_client):
#     def model(self):
#     def create(self, namespace, **kwargs):
#     def update(self, namespace, prop_name, **kwargs):
#     def get(self, namespace, prop_name):
#     def _get(self, namespace, prop_name, header=None):
#     def list(self, namespace, **kwargs):
#     def delete(self, namespace, prop_name):
#     def delete_all(self, namespace):
#     def __init__(self, http_client, schema_client):
#     def model(self):
#     def create(self, namespace, **kwargs):
#     def update(self, namespace, object_name, **kwargs):
#     def get(self, namespace, object_name):
#     def _get(self, namespace, object_name, header=None):
#     def list(self, namespace, **kwargs):
#     def delete(self, namespace, object_name):
#     def delete_all(self, namespace):
#     def __init__(self, http_client, schema_client):
#     def model(self):
#     def create(self, namespace, tag_name):
#     def create_multiple(self, namespace, **kwargs):
#     def update(self, namespace, tag_name, **kwargs):
#     def get(self, namespace, tag_name):
#     def _get(self, namespace, tag_name, header=None):
#     def list(self, namespace, **kwargs):
#     def delete(self, namespace, tag_name):
#     def delete_all(self, namespace):


import testtools
from glanceclient.tests.unit.v2 import base
from glanceclient.tests import utils
from glanceclient.v2 import metadefs
            {},
            {
                "additionalProperties": True,
                "name": {
                    "type": "string"
                },
                "created_at": {
                    "type": "string",
                    "readOnly": True,
                    "description": ("Date and time of tag creation"),
                    "format": "date-time"
                },
                "updated_at": {
                    "type": "string",
                    "readOnly": True,
                    "description": ("Date and time of the last tag"
                                    "  modification"),
                    "format": "date-time"
                },
                'properties': {}
            }
        )
    }
}


class TestTagController(testtools.TestCase):
    def setUp(self):
        super(TestTagController, self).setUp()
        self.api = utils.FakeAPI(data_fixtures)

# Path: glanceclient/tests/unit/v2/base.py
# class BaseController(testtools.TestCase):
# class BaseResourceTypeController(BaseController):
#     def __init__(self, api, schema_api, controller_class):
#     def _assertRequestId(self, obj):
#     def list(self, *args, **kwargs):
#     def get_associated_image_tasks(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def create(self, *args, **kwargs):
#     def create_multiple(self, *args, **kwargs):
#     def update(self, *args, **properties):
#     def delete(self, *args):
#     def delete_all(self, *args):
#     def deactivate(self, *args):
#     def reactivate(self, *args):
#     def upload(self, *args, **kwargs):
#     def data(self, *args, **kwargs):
#     def delete_locations(self, *args):
#     def add_location(self, *args, **kwargs):
#     def update_location(self, *args, **kwargs):
#     def associate(self, *args, **kwargs):
#     def deassociate(self, *args):
#     def image_import(self, *args):
#     def __init__(self, api, schema_api, controller_class):
#     def get(self, *args, **kwargs):
# 
# Path: glanceclient/tests/utils.py
# class FakeAPI(object):
# class FakeSchemaAPI(FakeAPI):
# class RawRequest(object):
# class FakeResponse(object):
# class TestCase(testtools.TestCase):
# class FakeTTYStdout(io.StringIO):
# class FakeNoTTYStdout(FakeTTYStdout):
#     def __init__(self, fixtures):
#     def _request(self, method, url, headers=None, data=None,
#                  content_length=None):
#     def get(self, *args, **kwargs):
#     def post(self, *args, **kwargs):
#     def put(self, *args, **kwargs):
#     def patch(self, *args, **kwargs):
#     def delete(self, *args, **kwargs):
#     def head(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def __init__(self, headers, body=None,
#                  version=1.0, status=200, reason="Ok"):
#     def getheaders(self):
#     def getheader(self, key, default):
#     def read(self, amt):
#     def __init__(self, headers=None, body=None,
#                  version=1.0, status_code=200, reason="Ok"):
#     def status(self):
#     def ok(self):
#     def read(self, amt):
#     def close(self):
#     def content(self):
#     def text(self):
#     def json(self, **kwargs):
#     def iter_content(self, chunk_size=1, decode_unicode=False):
#     def release_conn(self, **kwargs):
#     def isatty(self):
#     def write(self, data):
#     def isatty(self):
# def sort_url_by_query_keys(url):
# def build_call_record(method, url, headers, data):
#     TEST_REQUEST_BASE = {
#         'config': {'danger_mode': False},
#         'verify': True}
# 
# Path: glanceclient/v2/metadefs.py
# DEFAULT_PAGE_SIZE = 20
# SORT_DIR_VALUES = ('asc', 'desc')
# SORT_KEY_VALUES = ('created_at', 'namespace')
# class NamespaceController(object):
# class ResourceTypeController(object):
# class PropertyController(object):
# class ObjectController(object):
# class TagController(object):
#     def __init__(self, http_client, schema_client):
#     def model(self):
#     def create(self, **kwargs):
#     def update(self, namespace_name, **kwargs):
#     def get(self, namespace, **kwargs):
#     def _get(self, namespace, header=None, **kwargs):
#     def list(self, **kwargs):
#         def paginate(url):
#     def delete(self, namespace):
#     def __init__(self, http_client, schema_client):
#     def model(self):
#     def associate(self, namespace, **kwargs):
#     def deassociate(self, namespace, resource):
#     def list(self):
#     def get(self, namespace):
#     def __init__(self, http_client, schema_client):
#     def model(self):
#     def create(self, namespace, **kwargs):
#     def update(self, namespace, prop_name, **kwargs):
#     def get(self, namespace, prop_name):
#     def _get(self, namespace, prop_name, header=None):
#     def list(self, namespace, **kwargs):
#     def delete(self, namespace, prop_name):
#     def delete_all(self, namespace):
#     def __init__(self, http_client, schema_client):
#     def model(self):
#     def create(self, namespace, **kwargs):
#     def update(self, namespace, object_name, **kwargs):
#     def get(self, namespace, object_name):
#     def _get(self, namespace, object_name, header=None):
#     def list(self, namespace, **kwargs):
#     def delete(self, namespace, object_name):
#     def delete_all(self, namespace):
#     def __init__(self, http_client, schema_client):
#     def model(self):
#     def create(self, namespace, tag_name):
#     def create_multiple(self, namespace, **kwargs):
#     def update(self, namespace, tag_name, **kwargs):
#     def get(self, namespace, tag_name):
#     def _get(self, namespace, tag_name, header=None):
#     def list(self, namespace, **kwargs):
#     def delete(self, namespace, tag_name):
#     def delete_all(self, namespace):


# Path: glanceclient/tests/unit/v2/test_metadefs_tags.py
import testtools
from glanceclient.tests.unit.v2 import base
from glanceclient.tests import utils
from glanceclient.v2 import metadefs

            {},
            {
                "additionalProperties": True,
                "name": {
                    "type": "string"
                },
                "created_at": {
                    "type": "string",
                    "readOnly": True,
                    "description": ("Date and time of tag creation"),
                    "format": "date-time"
                },
                "updated_at": {
                    "type": "string",
                    "readOnly": True,
                    "description": ("Date and time of the last tag"
                                    "  modification"),
                    "format": "date-time"
                },
                'properties': {}
            }
        )
    }
}


class TestTagController(testtools.TestCase):
    def setUp(self):
        super(TestTagController, self).setUp()
        self.api = utils.FakeAPI(data_fixtures)

        self.schema_api = utils.FakeSchemaAPI(schema_fixtures)