def test_get_field_dynamic(self): schema = Schema() config = Config(schema) config._fields['hello'] = 'world' assert config._get_field('hello') == 'world'
def test_get_field_base(self): schema = Schema() field = schema._fields['hello'] = Field() config = Config(schema) assert config._get_field('hello') is field