~adam-collard/charm-helpers/amulet-get-process-id-list-fixes

« back to all changes in this revision

Viewing changes to tests/core/test_host.py

[tealeg] corrects the name of override files used by core.host.service_pause and core.host.service_resume to match the documented standards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
 
113
113
        service.assert_called_with('stop', service_name)
114
114
        override_path = os.path.join(
115
 
            tempdir, "{}.conf.override".format(service_name))
 
115
            tempdir, "{}.override".format(service_name))
116
116
        with open(override_path, "r") as fh:
117
117
            override_contents = fh.read()
118
118
        self.assertEqual("manual\n", override_contents)
127
127
 
128
128
        service.assert_called_with('start', service_name)
129
129
        override_path = os.path.join(
130
 
            tempdir, "{}.conf.override".format(service_name))
 
130
            tempdir, "{}.override".format(service_name))
131
131
        self.assertFalse(os.path.exists(override_path))
132
132
 
133
133
    @patch.object(host, 'service')