neutron/neutron/tests/unit/common
Henry Gessau 99cfd671be debtcollector for globals
The deprecation shim created by Doug turns out to be rather useful.
It emits a warning when an global (attribute of a module) is
referenced but that global has been moved to another module.

This update makes the following changes to the shim:

 - Rename it to _MovedGlobals to better describe what it is a
   debtcollector for.

 - Use inspect to get the original reference and to check that
   _MovedGlobals is called from the last line of a module.

 - Save the old reference automatically in the instance to prevent it
   from getting garbage collected.

 - Beef up the _moved_global() method for moving/renaming individual
   globals, allowing it to move and rename or rename in place.

Change-Id: I868aa4a3129dd05467a103364088efbb86bc5d0f
2016-08-30 10:18:19 -04:00
..
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
moved_globals_code1.py debtcollector for globals 2016-08-30 10:18:19 -04:00
moved_globals_code2.py debtcollector for globals 2016-08-30 10:18:19 -04:00
moved_globals_target.py debtcollector for globals 2016-08-30 10:18:19 -04:00
test__deprecate.py debtcollector for globals 2016-08-30 10:18:19 -04:00
test_cache_utils.py cache_utils: fixed cache misses for the new (oslo.cache) configuration 2016-06-16 23:07:40 +02:00
test_ipv6_utils.py Fix deprecation warnings 2016-08-26 22:16:06 -04:00
test_rpc.py Merge "Use from_dict to load context params" 2016-08-26 22:00:11 +00:00
test_utils.py Fixed neutron-db-manage without neutron/tests installed 2016-08-15 06:31:13 +00:00