def test_006_config_manager(self): """ Test adding to the config context, adding single values that do overwrite existing. """ cfg = ConfigManager() self.assertNotIn('value1', cfg.__dict__) cfg.value1 = 5000 self.assertIn('value1', cfg.__dict__) self.assertEqual(cfg.value1, 5000) cfg.value1 = 'new-value' self.assertIn('value1', cfg.__dict__) self.assertEqual(cfg.value1, 'new-value')
def test_006_config_manager(self): """ Test adding to the config context, adding single values that do overwrite existing. """ cfg = ConfigManager() self.assertNotIn('value1', cfg.__dict__) cfg.value1 = 5000 self.assertIn('value1', cfg.__dict__) self.assertEqual(cfg.value1, 5000) cfg.value1 = 'new-value' self.assertIn('value1', cfg.__dict__) self.assertEqual(cfg.value1, 'new-value')
def test_005_config_manager(self): """ Test adding to the config context, adding single values that do not overwrite existing. """ cfg = ConfigManager() self.assertNotIn('value1', cfg.__dict__) cfg.value1 = 5000 self.assertIn('value1', cfg.__dict__)
def test_005_config_manager(self): """ Test adding to the config context, adding single values that do not overwrite existing. """ cfg = ConfigManager() self.assertNotIn('value1', cfg.__dict__) cfg.value1 = 5000 self.assertIn('value1', cfg.__dict__)