@pytest.mark.parametrize('annotation_datetime,timeframe_label', [(FIVE_MINS_AGO, 'Last 7 days'), (THIRD_MARCH_1968, 'Mar 1968')])
def test_one_annotation(self, annotation_datetime, timeframe_label):
    annotation = factories.Annotation(document=factories.Document(), updated=annotation_datetime)
    timeframes = bucketing.bucket([annotation])
    assert (timeframes == [timeframe_with(timeframe_label, {annotation.document: bucketing.DocumentBucket(annotation.document, [annotation])})])
@pytest.mark.parametrize('annotation_datetime,timeframe_label', [(FIVE_MINS_AGO, 'Last 7 days'), (THIRD_MARCH_1968, 'Mar 1968')])
def test_one_annotation(self, annotation_datetime, timeframe_label):
    annotation = factories.Annotation(document=factories.Document(), updated=annotation_datetime)
    timeframes = bucketing.bucket([annotation])
    assert (timeframes == [timeframe_with(timeframe_label, {annotation.document: bucketing.DocumentBucket(annotation.document, [annotation])})])