Merge "Removed deprecated tests function"

This commit is contained in:
Jenkins 2017-01-11 18:02:45 +00:00 committed by Gerrit Code Review
commit e4f7916690
2 changed files with 0 additions and 21 deletions

View File

@ -23,10 +23,8 @@ import gc
import inspect
import os
import os.path
import sys
import weakref
from debtcollector import moves
import eventlet.timeout
import fixtures
import mock
@ -48,7 +46,6 @@ from neutron.callbacks import manager as registry_manager
from neutron.callbacks import registry
from neutron.common import config
from neutron.common import rpc as n_rpc
from neutron.common import utils
from neutron.db import agentschedulers_db
from neutron import manager
from neutron import policy
@ -73,16 +70,6 @@ def fake_use_fatal_exceptions(*args):
return True
for _name in ('get_related_rand_names',
'get_rand_name',
'get_rand_device_name',
'get_related_rand_device_names'):
setattr(sys.modules[__name__], _name, moves.moved_function(
getattr(utils, _name), _name, __name__,
message='use "neutron.common.utils.%s" instead' % _name,
version='Newton', removal_version='Ocata'))
def bool_from_env(key, strict=False, default=False):
value = os.environ.get(key)
return strutils.bool_from_string(value, strict=strict, default=default)

View File

@ -12,10 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from debtcollector import moves
import testscenarios
from neutron.common import utils
from neutron.tests.functional import base
@ -27,12 +25,6 @@ MARKED_BLOCK_RULE = '-m mark --mark %s -j DROP' % MARK_VALUE
ICMP_BLOCK_RULE = '-p icmp -j DROP'
get_rand_name = moves.moved_function(
utils.get_rand_name, 'get_rand_name', __name__,
message='use "neutron.common.utils.get_rand_name" instead',
version='Newton', removal_version='Ocata')
# Regarding MRO, it goes BaseOVSLinuxTestCase, WithScenarios,
# BaseSudoTestCase, ..., UnitTest, object. setUp is not defined in
# WithScenarios, so it will correctly be found in BaseSudoTestCase.