

def test_set_in_empty_sections(self):
    config = self.load_yaml('\n        foo:\n        ')
    self.assertIsNone(config.get('foo'))
    config.set('foo.bar', 1)
    self.assertEqual(config.get('foo.bar'), 1)

dataset/ETHPy150Open deliveryhero/lymph/lymph/tests/test_config.py ConfigurationTests.test_set_in_empty_sections/original