]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove a unused Context class
authorSalvatore Orlando <salv.orlando@gmail.com>
Mon, 18 May 2015 21:51:05 +0000 (14:51 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 18 May 2015 21:51:05 +0000 (14:51 -0700)
This class in neutron.tests.unit.plugins.opencontrail.test_contrail.plugin
is not used anywhere and has no future development purpose.

Change-Id: Ibf149c5392b97f2aa33ccfc97c8ad6377f34bfee

neutron/tests/unit/plugins/opencontrail/test_contrail_plugin.py

index c79bd701ff56738fc696a18ac2b718b26c1c5c95..e7fa6694694254ec1a1883d238725488761be441 100644 (file)
@@ -14,9 +14,6 @@
 # limitations under the License.
 
 
-import datetime
-import uuid
-
 import mock
 import netaddr
 from oslo_config import cfg
@@ -182,21 +179,6 @@ class FakeServer(db_base_plugin_v2.NeutronDbPluginV2,
 FAKE_SERVER = FakeServer()
 
 
-class Context(object):
-    def __init__(self, tenant_id=''):
-        self.read_only = False
-        self.show_deleted = False
-        self.roles = [u'admin', u'KeystoneServiceAdmin', u'KeystoneAdmin']
-        self._read_deleted = 'no'
-        self.timestamp = datetime.datetime.now()
-        self.auth_token = None
-        self._session = None
-        self._is_admin = True
-        self.admin = uuid.uuid4().hex.decode()
-        self.request_id = 'req-' + str(uuid.uuid4())
-        self.tenant = tenant_id
-
-
 class KeyStoneInfo(object):
     """To generate Keystone Authentication information
        Contrail Driver expects Keystone auth info for testing purpose.