def test_append_appends_the_annotation(self, document):
    bucket = bucketing.DocumentBucket(document)
    annotations = []
    for _ in range(7):
        annotation = factories.Annotation()
        annotations.append(annotation)
        bucket.append(annotation)
    assert (bucket.annotations == annotations)
def test_append_appends_the_annotation(self, document):
    bucket = bucketing.DocumentBucket(document)
    annotations = []
    for _ in range(7):
        annotation = factories.Annotation()
        annotations.append(annotation)
        bucket.append(annotation)
    assert (bucket.annotations == annotations)