'Testing the `Collect` aggregate.'

@skipUnlessDBFeature('supports_collect_aggr')
def test_collect(self):

    ref_geom = GEOSGeometry('MULTIPOINT(-97.516111    33.058333,-96.801611    32.782057,-95.363151    29.763374,-96.801611    32.782057)')
    coll = City.objects.filter(state='TX').aggregate(Collect('location__point'))['location__point__collect']
    self.assertEqual(4, len(coll))
    self.assertTrue(ref_geom.equals(coll))
