From 2bcf8c54fafd416555918ae7df05593860518805 Mon Sep 17 00:00:00 2001 From: Liam Young Date: Mon, 11 May 2015 09:25:22 +0100 Subject: [PATCH] Fix lint and unit tests --- unit_tests/test_glance_relations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unit_tests/test_glance_relations.py b/unit_tests/test_glance_relations.py index 6ed654a3..22fec236 100644 --- a/unit_tests/test_glance_relations.py +++ b/unit_tests/test_glance_relations.py @@ -41,6 +41,7 @@ TO_PATCH = [ 'restart_on_change', 'service_reload', 'service_stop', + 'service_restart', # charmhelpers.contrib.openstack.utils 'configure_installation_source', 'os_release', @@ -427,6 +428,7 @@ class GlanceRelationTests(CharmTestCase): self.assertEquals([call('/etc/glance/glance-api.conf'), call(self.ceph_config_file())], configs.write.call_args_list) + self.service_restart.assert_called_with('glance-api') @patch.object(relations, 'CONFIGS') def test_ceph_broken(self, configs):