'Make sure the "near" operator works.'

def test_near(self):

    (event1, event2, event3) = self._create_event_data()
    events = self.Event.objects(location__near=[(-87.67892), 41.9120459])
    self.assertEqual(events.count(), 3)
    self.assertEqual(list(events), [event1, event3, event2])
    events = self.Event.objects(location__near=[(-87.67892), 41.9120459])
    events = events.order_by('-date')
    self.assertEqual(events.count(), 3)
    self.assertEqual(list(events), [event3, event1, event2])
