def test_config_returns_copy_after_freeze(self):
     config_manager = ConfigManager()
     config_manager['hello'] = 'goodbye'
     config_manager.freeze()
     config_manager.config()['second'] = 'changed thing'
     self.assertEqual({
         'hello': 'goodbye',
         'run_script_environment': {}
     }, config_manager.config())
 def test_frozen(self):
     config_manager = ConfigManager()
     config_manager.freeze()
     self.assertTrue(config_manager.frozen())