# Path: tuskar/api/acl.py
# OPT_GROUP_NAME = 'keystone_authtoken'
# def register_opts(conf):
# def install(app, conf):
#     def before(self, state):
# class AdminAuthHook(hooks.PecanHook):
# 
# Path: tuskar/tests/base.py
# CONF = cfg.CONF
# _DB_CACHE = None
#             _DB_CACHE = Database(session, migration,
#                                     sql_connection=CONF.database.connection,
#                                     sqlite_db=CONF.sqlite_db,
#                                     sqlite_clean_db=CONF.sqlite_clean_db)
# class Database(fixtures.Fixture):
# class ReplaceModule(fixtures.Fixture):
# class MoxStubout(fixtures.Fixture):
# class TestingException(Exception):
# class TestCase(testtools.TestCase):
# class TimeOverride(fixtures.Fixture):
#     def __init__(self, db_session, db_migrate, sql_connection,
#                     sqlite_db, sqlite_clean_db):
#     def setUp(self):
#     def post_migrations(self):
#     def __init__(self, name, new_value):
#     def _restore(self, old_value):
#     def setUp(self):
#     def setUp(self):
#     def setUp(self):
#     def _clear_attrs(self):
#     def config(self, **kw):
#     def path_get(self, project_file=None):
#     def setUp(self):


from oslo.config import cfg
from tuskar.api import acl
from tuskar.tests import base
import pecan
import pecan.testing
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""Base classes for API tests.
"""

# import urllib



# from tuskar.openstack.common import jsonutils


class FunctionalTest(base.TestCase):
    """Used for functional tests of Pecan controllers where you need to
    test your literal application and its integration with the
    framework.
    """

    PATH_PREFIX = '/v1'

    SOURCE_DATA = {'test_source': {'somekey': '666'}}

    def setUp(self):
        super(FunctionalTest, self).setUp()

# Path: tuskar/api/acl.py
# OPT_GROUP_NAME = 'keystone_authtoken'
# def register_opts(conf):
# def install(app, conf):
#     def before(self, state):
# class AdminAuthHook(hooks.PecanHook):
# 
# Path: tuskar/tests/base.py
# CONF = cfg.CONF
# _DB_CACHE = None
#             _DB_CACHE = Database(session, migration,
#                                     sql_connection=CONF.database.connection,
#                                     sqlite_db=CONF.sqlite_db,
#                                     sqlite_clean_db=CONF.sqlite_clean_db)
# class Database(fixtures.Fixture):
# class ReplaceModule(fixtures.Fixture):
# class MoxStubout(fixtures.Fixture):
# class TestingException(Exception):
# class TestCase(testtools.TestCase):
# class TimeOverride(fixtures.Fixture):
#     def __init__(self, db_session, db_migrate, sql_connection,
#                     sqlite_db, sqlite_clean_db):
#     def setUp(self):
#     def post_migrations(self):
#     def __init__(self, name, new_value):
#     def _restore(self, old_value):
#     def setUp(self):
#     def setUp(self):
#     def setUp(self):
#     def _clear_attrs(self):
#     def config(self, **kw):
#     def path_get(self, project_file=None):
#     def setUp(self):


# Path: tuskar/tests/api/api.py
from oslo.config import cfg
from tuskar.api import acl
from tuskar.tests import base
import pecan
import pecan.testing

#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""Base classes for API tests.
"""

# import urllib



# from tuskar.openstack.common import jsonutils


class FunctionalTest(base.TestCase):
    """Used for functional tests of Pecan controllers where you need to
    test your literal application and its integration with the
    framework.
    """

    PATH_PREFIX = '/v1'

    SOURCE_DATA = {'test_source': {'somekey': '666'}}

    def setUp(self):
        super(FunctionalTest, self).setUp()

        cfg.CONF.set_override("auth_version", "v2.0", group=acl.OPT_GROUP_NAME)