158
160
setattr, hooks.hookenv, "_config", hooks.hookenv._config)
159
161
hooks.hookenv._config = (
160
("key", "myusername"), ("tenant", ""),
162
("key", "myusername"), ("tenant", ""), ("provider", "nova"),
161
163
("secret", "password"), ("region", ""),
162
164
("endpoint", "https://keystone_url:443/v2.0/"))
165
166
result = self.assertRaises(SystemExit, hooks.config_changed)
166
167
self.assertEqual(result.code, 0)