def test_get_field_no_exists(self): schema = Schema() assert schema._get_field('hello') is None
def test_get_field_exists(self): schema = Schema() schema._fields['hello'] = 'x' assert schema._get_field('hello') == 'x'