'Helper function for ensuring the integrity of the mapped County models.'

def county_helper(self, county_feat=True):

    for (name, n, st) in zip(NAMES, NUMS, STATES):
        c = County.objects.get(name=name)
        self.assertEqual(n, len(c.mpoly))
        self.assertEqual(st, c.state.name)
        if county_feat:
            qs = CountyFeat.objects.filter(name=name)
            self.assertEqual(n, qs.count())
