@contextlib.contextmanager<EOL><INDENT>def _mock_neutron_service_plugins(self):<DEDENT>
with mock.patch.object(bc, '<STR_LIT>') as get_plugin:<EOL><INDENT>get_plugin.side_effect = lambda svc='<STR_LIT>': {<EOL>'<STR_LIT>': self.core_plugin, '<STR_LIT>': object(),<EOL>bc.constants.L3: self}[svc]<EOL>yield get_plugin<EOL><DEDENT>
Context manager for mocking get_plugin

        This is required to mock and unmock the function as close to where its
        being used as possible.