# Path: oioswift/common/middleware/versioned_writes.py
# DELETE_MARKER_CONTENT_TYPE = vw.DELETE_MARKER_CONTENT_TYPE
# VERSIONING_SUFFIX = '+versioning'
# def swift3_versioned_object_name(object_name, version_id=None):
# def swift3_split_object_name_version(object_name):
# def get_unversioned_container(container):
# def is_deleted(obj):
#     def handle_container_listing(self, env, start_response):
#     def handle_container_request(self, env, start_response):
#     def object_request(self, req, api_version, account, container, obj,
#                        allow_versioned_writes):
#     def __call__(self, env, start_response):
# def filter_factory(global_conf, **local_conf):
#     def obj_versions_filter(app):
# class OioVersionedWritesContext(vw.VersionedWritesContext):
# class OioVersionedWritesMiddleware(vw.VersionedWritesMiddleware):


import os.path
import sys
import test  # noqa: E402, F401
from swift.common import swob
from swift.common.swob import Request
from oioswift.common.middleware import versioned_writes
from test.unit.common.middleware \
    import test_versioned_writes as test_vw  # noqa: E402

# Hack PYTHONPATH so "test" is swift's test directory
sys.path.insert(1, os.path.abspath(os.path.join(__file__, '../../../../..')))  # noqa: E402 E501


class OioVersionedWritesTestCase(test_vw.VersionedWritesTestCase):

    def setUp(self):

# Path: oioswift/common/middleware/versioned_writes.py
# DELETE_MARKER_CONTENT_TYPE = vw.DELETE_MARKER_CONTENT_TYPE
# VERSIONING_SUFFIX = '+versioning'
# def swift3_versioned_object_name(object_name, version_id=None):
# def swift3_split_object_name_version(object_name):
# def get_unversioned_container(container):
# def is_deleted(obj):
#     def handle_container_listing(self, env, start_response):
#     def handle_container_request(self, env, start_response):
#     def object_request(self, req, api_version, account, container, obj,
#                        allow_versioned_writes):
#     def __call__(self, env, start_response):
# def filter_factory(global_conf, **local_conf):
#     def obj_versions_filter(app):
# class OioVersionedWritesContext(vw.VersionedWritesContext):
# class OioVersionedWritesMiddleware(vw.VersionedWritesMiddleware):


# Path: tests/unit/common/middleware/test_versioned_writes.py
import os.path
import sys
import test  # noqa: E402, F401
from swift.common import swob
from swift.common.swob import Request
from oioswift.common.middleware import versioned_writes
from test.unit.common.middleware \
    import test_versioned_writes as test_vw  # noqa: E402


# Hack PYTHONPATH so "test" is swift's test directory
sys.path.insert(1, os.path.abspath(os.path.join(__file__, '../../../../..')))  # noqa: E402 E501


class OioVersionedWritesTestCase(test_vw.VersionedWritesTestCase):

    def setUp(self):

        test.unit.common.middleware.test_versioned_writes.versioned_writes = \