'Create some sample data re-used in many of the tests below.'

def _create_event_data(self, point_field_class=GeoPointField):

    class Event(Document, ):
        title = StringField()
        date = DateTimeField()
        location = point_field_class()
        def __unicode__(self):
            return self.title
    self.Event = Event
    Event.drop_collection()
    event1 = Event.objects.create(title='Coltrane    Motion    @    Double    Door', date=(datetime.datetime.now() - datetime.timedelta(days=1)), location=[(-87.677137), 41.909889])
    event2 = Event.objects.create(title='Coltrane    Motion    @    Bottom    of    the    Hill', date=(datetime.datetime.now() - datetime.timedelta(days=10)), location=[(-122.4194155), 37.7749295])
    event3 = Event.objects.create(title='Coltrane    Motion    @    Empty    Bottle', date=datetime.datetime.now(), location=[(-87.686638), 41.900474])
    return (event1, event2, event3)
