'Ensure the "max_distance" operator works alongside the "near"
operator.'

def test_near_and_max_distance(self):

    (event1, event2, event3) = self._create_event_data()
    point = [(-122.415579), 37.7566023]
    events = self.Event.objects(location__near=point, location__max_distance=10)
    self.assertEqual(events.count(), 1)
    self.assertEqual(events[0], event2)
