# Path: armet/test.py
# def is_available(host='localhost', port=5000):
# def skipUnlessAvailable(host='localhost', port=5000):
#     def __init__(self, host='localhost', port=5000):
#     def request(self, path='/', method='GET', body='', headers=None,
#                 url=None, username=None, password=None):
#     def options(self, *args, **kwargs):
#     def head(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def post(self, *args, **kwargs):
#     def put(self, *args, **kwargs):
#     def delete(self, *args, **kwargs):
#     def setUp(self):
# class Client:
# class ResourceTestCase(unittest.TestCase):


import sys
import pytest
import armet
from importlib import import_module
from wsgi_intercept.httplib2_intercept import install
from armet import test
        from armet import decorators

    @classmethod
    def setup_class(cls):
        # Initialize the test client.
        cls.client = test.Client(cls.host, cls.port)

    @pytest.fixture(autouse=True, scope='class')
    def initialize(self, request, connectors):
        # Install the WSGI interception layer.
        install()

        # Unload django.
        for module in list(sys.modules.keys()):
            if module and 'django' in module:
                del sys.modules[module]

        # Reset and clear all global cache in armet.

        decorators._resources = {}
        # decorators._handlers = {}
        armet.use.config = {}

        # Re-initialize the configuration.
        armet.use(connectors=connectors, debug=True)

        prefix = 'tests.connectors.'
        callback = None
        if 'model' in connectors:
            # Initialize the database access layer.
            model = import_module(prefix + connectors['model'])

# Path: armet/test.py
# def is_available(host='localhost', port=5000):
# def skipUnlessAvailable(host='localhost', port=5000):
#     def __init__(self, host='localhost', port=5000):
#     def request(self, path='/', method='GET', body='', headers=None,
#                 url=None, username=None, password=None):
#     def options(self, *args, **kwargs):
#     def head(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def post(self, *args, **kwargs):
#     def put(self, *args, **kwargs):
#     def delete(self, *args, **kwargs):
#     def setUp(self):
# class Client:
# class ResourceTestCase(unittest.TestCase):


# Path: tests/connectors/base.py
import sys
import pytest
import armet
from importlib import import_module
from wsgi_intercept.httplib2_intercept import install
from armet import test
        from armet import decorators


    @classmethod
    def setup_class(cls):
        # Initialize the test client.
        cls.client = test.Client(cls.host, cls.port)

    @pytest.fixture(autouse=True, scope='class')
    def initialize(self, request, connectors):
        # Install the WSGI interception layer.
        install()

        # Unload django.
        for module in list(sys.modules.keys()):
            if module and 'django' in module:
                del sys.modules[module]

        # Reset and clear all global cache in armet.

        decorators._resources = {}
        # decorators._handlers = {}
        armet.use.config = {}

        # Re-initialize the configuration.
        armet.use(connectors=connectors, debug=True)

        prefix = 'tests.connectors.'
        callback = None
        if 'model' in connectors:
            # Initialize the database access layer.
            model = import_module(prefix + connectors['model'])

            callback = model.model_setup