def testSchemaBasic(self):
    atts = [('att1', str), ('att2', int), ('geom', geom.Point)]
    s = feature.Schema('test', atts)
    assert ('test' == s.name)
    n = 0
    for att in s.fields:
        assert (atts[n][0] == att.name)
        assert (atts[n][1] == att.typ)
        n = (n + 1)
    assert (len(atts) == n)
    assert (atts[2][0] == s.geom.name)
    assert (atts[2][1] == s.geom.typ)
def testSchemaBasic(self):
    atts = [('att1', str), ('att2', int), ('geom', geom.Point)]
    s = feature.Schema('test', atts)
    assert ('test' == s.name)
    n = 0
    for att in s.fields:
        assert (atts[n][0] == att.name)
        assert (atts[n][1] == att.typ)
        n = (n + 1)
    assert (len(atts) == n)
    assert (atts[2][0] == s.geom.name)
    assert (atts[2][1] == s.geom.typ)