def test_init_dict(self): t = juju_test.TestCfg(yaml.safe_load(self.test_config)) self.assertEqual(t.timeout, 500) self.assertEqual(t.substrates['include'], 'local')
def test_update(self): t = juju_test.TestCfg(self.test_config) t.update(timeout=400) self.assertEqual(t.timeout, 400)
def test_init_str(self): t = juju_test.TestCfg(self.test_config) self.assertEqual(t.timeout, 500) self.assertEqual(t.substrates['include'], 'local')