예제 #1
0
 def test_get_field_dynamic(self):
     schema = Schema()
     config = Config(schema)
     config._fields['hello'] = 'world'
     assert config._get_field('hello') == 'world'
예제 #2
0
    def test_get_field_base(self):
        schema = Schema()
        field = schema._fields['hello'] = Field()
        config = Config(schema)

        assert config._get_field('hello') is field