@pytest.mark.parametrize('annotation_datetime,timeframe_label', [(FIVE_MINS_AGO, 'Last 7 days'), (THIRD_MARCH_1968, 'Mar 1968')])
def test_multiple_annotations_of_one_document_in_one_timeframe(self, annotation_datetime, timeframe_label):
    results = [factories.Annotation(target_uri='https://example.com', updated=annotation_datetime) for _ in range(3)]
    timeframes = bucketing.bucket(results)
    document = results[0].document
    assert (timeframes == [timeframe_with(timeframe_label, {document: bucketing.DocumentBucket(document, results)})])
@pytest.mark.parametrize('annotation_datetime,timeframe_label', [(FIVE_MINS_AGO, 'Last 7 days'), (THIRD_MARCH_1968, 'Mar 1968')])
def test_multiple_annotations_of_one_document_in_one_timeframe(self, annotation_datetime, timeframe_label):
    results = [factories.Annotation(target_uri='https://example.com', updated=annotation_datetime) for _ in range(3)]
    timeframes = bucketing.bucket(results)
    document = results[0].document
    assert (timeframes == [timeframe_with(timeframe_label, {document: bucketing.DocumentBucket(document, results)})])