From 5e524cf6f070cabb566a5c98b3f7847fa6b825ae Mon Sep 17 00:00:00 2001 From: Liam Young Date: Wed, 6 May 2015 10:15:15 +0100 Subject: [PATCH] Fix lint and unit tests --- unit_tests/test_quantum_hooks.py | 3 ++- unit_tests/test_quantum_utils.py | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/unit_tests/test_quantum_hooks.py b/unit_tests/test_quantum_hooks.py index a530352e..afff6cb9 100644 --- a/unit_tests/test_quantum_hooks.py +++ b/unit_tests/test_quantum_hooks.py @@ -339,7 +339,8 @@ class TestQuantumHooks(CharmTestCase): def test_neutron_plugin_changed(self): self.use_l3ha.return_value = True self._call_hook('neutron-plugin-api-relation-changed') - self.apt_install.assert_called_with(['keepalived'], fatal=True) + self.apt_install.assert_called_with(['keepalived', 'conntrack'], + fatal=True) self.assertTrue(self.CONFIGS.write_all.called) def test_cluster_departed_nvp(self): diff --git a/unit_tests/test_quantum_utils.py b/unit_tests/test_quantum_utils.py index 2a72721f..634024b6 100644 --- a/unit_tests/test_quantum_utils.py +++ b/unit_tests/test_quantum_utils.py @@ -929,8 +929,10 @@ class TestQuantumAgentReallocation(CharmTestCase): 'start_dir': '/var/lib/neutron', 'process_name': 'neutron-nvsd-agent', 'executable_name': '/usr/local/bin/neutron-nvsd-agent', - 'config_files': ['/etc/neutron/neutron.conf', - '/etc/neutron/plugins/oneconvergence/nvsdplugin.ini'], + 'config_files': [ + '/etc/neutron/neutron.conf', + '/etc/neutron/plugins/oneconvergence/nvsdplugin.ini' + ], 'log_file': '/var/log/neutron/nvsd-agent.log', } neutron_plugin_openflow_context = {