# Path: networking_odl/common/lightweight_testing.py
# LOG = logging.getLogger(__name__)
# OK = requests.codes.ok
# NO_CONTENT = requests.codes.no_content
# NOT_ALLOWED = requests.codes.not_allowed
# NOT_FOUND = requests.codes.not_found
# BAD_REQUEST = requests.codes.bad_request
# class OpenDaylightLwtClient(client.OpenDaylightRestClient):
#     def _make_response(cls, status_code=OK, content=None):
#     def _get_resource_id(cls, urlpath):
#     def post(cls, resource_type, resource_dict, urlpath, resource_list):
#     def put(cls, resource_type, resource_dict, urlpath, resource_list):
#     def delete(cls, resource_type, resource_dict, urlpath, resource_list):
#     def get(cls, resource_type, resource_dict, urlpath, resource_list=None):
#     def sendjson(self, method, urlpath, obj=None):
# 
# Path: networking_odl/tests/base.py
# class DietTestCase(base.DietTestCase):
# class OpenDaylightRestClientFixture(fixtures.Fixture):
# class OpenDaylightRestClientGlobalFixture(fixtures.Fixture):
# class OpenDaylightFeaturesFixture(fixtures.Fixture):
# class OpenDaylightJournalThreadFixture(fixtures.Fixture):
# class JournalWorkerPidFileFixture(fixtures.Fixture):
# class OpenDaylightPeriodicTaskFixture(fixtures.Fixture):
# class OpenDaylightPseudoAgentPrePopulateFixture(
#         nl_fixture.CallbackRegistryFixture):
# class OpenDaylightFullSyncFixture(fixtures.Fixture):
#     def patch(self, target, name, *args, **kwargs):
#     def _setUp(self):
#     def __init__(self, global_client):
#     def _setUp(self):
#     def _setUp(self):
#     def _setUp(self):
#     def remock_atexit(self):
#     def _setUp(self):
#     def _setUp(self):
#     def _setUp(self):
#     def _restore(self):
#     def _setUp(self):


from unittest import mock
from neutron.tests import base
from oslo_config import fixture as config_fixture
from networking_odl.common import lightweight_testing as lwt
from networking_odl.tests import base as odl_base
        from networking_odl.common import client as odl_client
        from networking_odl.common import client as odl_client
# Copyright (c) 2015 Intel Inc.
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         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.





class LightweightTestingTestCase(base.DietTestCase):
    def setUp(self):
        self.useFixture(odl_base.OpenDaylightRestClientFixture())
        self.cfg = self.useFixture(config_fixture.Config())
        super(LightweightTestingTestCase, self).setUp()


# Path: networking_odl/common/lightweight_testing.py
# LOG = logging.getLogger(__name__)
# OK = requests.codes.ok
# NO_CONTENT = requests.codes.no_content
# NOT_ALLOWED = requests.codes.not_allowed
# NOT_FOUND = requests.codes.not_found
# BAD_REQUEST = requests.codes.bad_request
# class OpenDaylightLwtClient(client.OpenDaylightRestClient):
#     def _make_response(cls, status_code=OK, content=None):
#     def _get_resource_id(cls, urlpath):
#     def post(cls, resource_type, resource_dict, urlpath, resource_list):
#     def put(cls, resource_type, resource_dict, urlpath, resource_list):
#     def delete(cls, resource_type, resource_dict, urlpath, resource_list):
#     def get(cls, resource_type, resource_dict, urlpath, resource_list=None):
#     def sendjson(self, method, urlpath, obj=None):
# 
# Path: networking_odl/tests/base.py
# class DietTestCase(base.DietTestCase):
# class OpenDaylightRestClientFixture(fixtures.Fixture):
# class OpenDaylightRestClientGlobalFixture(fixtures.Fixture):
# class OpenDaylightFeaturesFixture(fixtures.Fixture):
# class OpenDaylightJournalThreadFixture(fixtures.Fixture):
# class JournalWorkerPidFileFixture(fixtures.Fixture):
# class OpenDaylightPeriodicTaskFixture(fixtures.Fixture):
# class OpenDaylightPseudoAgentPrePopulateFixture(
#         nl_fixture.CallbackRegistryFixture):
# class OpenDaylightFullSyncFixture(fixtures.Fixture):
#     def patch(self, target, name, *args, **kwargs):
#     def _setUp(self):
#     def __init__(self, global_client):
#     def _setUp(self):
#     def _setUp(self):
#     def _setUp(self):
#     def remock_atexit(self):
#     def _setUp(self):
#     def _setUp(self):
#     def _setUp(self):
#     def _restore(self):
#     def _setUp(self):


# Path: networking_odl/tests/unit/common/test_lightweight_testing.py
from unittest import mock
from neutron.tests import base
from oslo_config import fixture as config_fixture
from networking_odl.common import lightweight_testing as lwt
from networking_odl.tests import base as odl_base
        from networking_odl.common import client as odl_client
        from networking_odl.common import client as odl_client

# Copyright (c) 2015 Intel Inc.
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         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.





class LightweightTestingTestCase(base.DietTestCase):
    def setUp(self):
        self.useFixture(odl_base.OpenDaylightRestClientFixture())
        self.cfg = self.useFixture(config_fixture.Config())
        super(LightweightTestingTestCase, self).setUp()


    def test_create_client_with_lwt_enabled(self):