

def test_create_instance_on_view(self):
    config = self.config.get('section')
    obj = config.create_instance('thing')
    self.assertIsInstance(obj, ConfigurableThing)
    self.assertEqual(obj.config['param'], 42)

dataset/ETHPy150Open deliveryhero/lymph/lymph/tests/test_config.py CreateInstanceTest.test_create_instance_on_view/original