def test_neutron_plugin_legacy_mode_legacy_on(self):
     self.relation_ids.return_value = []
     self.test_config.set('manage-neutron-plugin-legacy-mode', True)
     self.assertTrue(utils.neutron_plugin_legacy_mode())
 def test_neutron_plugin_legacy_mode_plugin(self):
     self.relation_ids.return_value = ['neutron-plugin:0']
     self.assertFalse(utils.neutron_plugin_legacy_mode())