def test_annotations_count_returns_count_of_annotations(self, db_session, document):
    bucket = bucketing.DocumentBucket(document)
    for _ in range(7):
        annotation = factories.Annotation()
        bucket.append(annotation)
    assert (bucket.annotations_count == 7)
def test_annotations_count_returns_count_of_annotations(self, db_session, document):
    bucket = bucketing.DocumentBucket(document)
    for _ in range(7):
        annotation = factories.Annotation()
        bucket.append(annotation)
    assert (bucket.annotations_count == 7)