neutron/neutron/tests/unit/ml2/drivers/brocade
Ihar Hrachyshka e33349e216 tests: initialize admin context after super().setUp call
New policy code requires that CONF is already initialized when policy
checks are invoked. It means that no Neutron context objects should be
created before BaseTestCase.setUp() is called that will set
configuration, among other things.

Ideally, we would just make sure that all test cases invoke
super().setUp() as the very first line of any subclass setUp() methods.
But since some of test cases require prior setup (like mocking extension
manager) before proceeding to base class, we end up with magically
shuffling context instantiations to occur below super() calls.

Change-Id: Ib1039ea1ff9480ca57f9cb0c917469d0d2ad28b8
Closes-Bug: #1400301
2014-12-15 12:09:55 +01:00
..
__init__.py Implementaion of Mechanism driver for 2014-03-04 15:31:36 -08:00
test_brocade_l3_plugin.py tests: initialize admin context after super().setUp call 2014-12-15 12:09:55 +01:00
test_brocade_mechanism_driver.py Migrate to oslo.utils 2014-11-26 10:31:03 +01:00