@pytest.mark.parametrize('annotation_datetime,timeframe_label', [(YESTERDAY, 'Last 7 days'), (THIRD_MARCH_1968, 'Mar 1968')])
def test_annotations_of_multiple_documents_in_one_timeframe(self, annotation_datetime, timeframe_label):
    annotation_1 = factories.Annotation(target_uri='http://example1.com', updated=annotation_datetime)
    annotation_2 = factories.Annotation(target_uri='http://example2.com', updated=annotation_datetime)
    annotation_3 = factories.Annotation(target_uri='http://example3.com', updated=annotation_datetime)
    timeframes = bucketing.bucket([annotation_1, annotation_2, annotation_3])
    assert (timeframes == [timeframe_with(timeframe_label, {annotation_1.document: bucketing.DocumentBucket(annotation_1.document, [annotation_1]), annotation_2.document: bucketing.DocumentBucket(annotation_2.document, [annotation_2]), annotation_3.document: bucketing.DocumentBucket(annotation_3.document, [annotation_3])})])
@pytest.mark.parametrize('annotation_datetime,timeframe_label', [(YESTERDAY, 'Last 7 days'), (THIRD_MARCH_1968, 'Mar 1968')])
def test_annotations_of_multiple_documents_in_one_timeframe(self, annotation_datetime, timeframe_label):
    annotation_1 = factories.Annotation(target_uri='http://example1.com', updated=annotation_datetime)
    annotation_2 = factories.Annotation(target_uri='http://example2.com', updated=annotation_datetime)
    annotation_3 = factories.Annotation(target_uri='http://example3.com', updated=annotation_datetime)
    timeframes = bucketing.bucket([annotation_1, annotation_2, annotation_3])
    assert (timeframes == [timeframe_with(timeframe_label, {annotation_1.document: bucketing.DocumentBucket(annotation_1.document, [annotation_1]), annotation_2.document: bucketing.DocumentBucket(annotation_2.document, [annotation_2]), annotation_3.document: bucketing.DocumentBucket(annotation_3.document, [annotation_3])})])