'Testing Data Source Features.'

def test04_features(self):

    for source in ds_list:
        ds = DataSource(source.ds)
        for layer in ds:
            for feat in layer:
                self.assertEqual(source.nfld, len(list(feat)))
                self.assertEqual(source.gtype, feat.geom_type)
                for (k, v) in source.fields.items():
                    self.assertIsInstance(feat[k], v)
                for fld in feat:
                    self.assertIn(fld.name, source.fields)
