def test_loaded_charm(self): """ Check for custom charm plugin """ charms = utils.load_ext_charms(self.charm_path, self.charm_modules) charm = [x for x in charms if x.__charm_class__.name() == "bitlbee"] self.assertEqual(charm[0].__charm_class__.name(), "bitlbee")
def test_override_sys_charm(self): """ Check that a system charm is overridden installed charm """ charms = utils.load_ext_charms(self.charm_path, self.charm_modules) horizon_charm = [x for x in charms if x.__charm_class__.name() == "openstack-dashboard"] charm_path = os.path.dirname(horizon_charm[0].__file__) self.assertNotEqual(charm_path, self.charm_sys_path)
def test_override_sys_charm(self): """ Check that a system charm is overridden installed charm """ charms = utils.load_ext_charms(self.charm_path, self.charm_modules) horizon_charm = [ x for x in charms if x.__charm_class__.name() == "openstack-dashboard" ] charm_path = os.path.dirname(horizon_charm[0].__file__) self.assertNotEqual(charm_path, self.charm_sys_path)