~junaidali/charms/trusty/plumgrid-director/liberty

« back to all changes in this revision

Viewing changes to unit_tests/test_pg_dir_hooks.py

  • Committer: Bilal Baqar
  • Date: 2016-03-25 16:45:25 UTC
  • mfrom: (25.1.11 plumgrid-director)
  • Revision ID: bbaqar@plumgrid.com-20160325164525-l0yemxcv9zb2mlai
Improved config-changed hook to perform steps according to the config changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        self.load_iovisor.assert_called_with()
63
63
        self.ensure_mtu.assert_called_with()
64
64
 
65
 
    def test_config_changed_hook(self):
66
 
        self.add_lcm_key.return_value = 1
67
 
        self._call_hook('config-changed')
68
 
 
69
65
    def test_start(self):
70
66
        self._call_hook('start')
71
67
        self.test_config.set('plumgrid-license-key', None)