def test_eq(self, document):
    bucket_1 = bucketing.DocumentBucket(document)
    bucket_2 = bucketing.DocumentBucket(document)
    for _ in range(5):
        annotation = factories.Annotation()
        bucket_1.append(annotation)
        bucket_2.append(annotation)
    assert (bucket_1 == bucket_2)
def test_eq(self, document):
    bucket_1 = bucketing.DocumentBucket(document)
    bucket_2 = bucketing.DocumentBucket(document)
    for _ in range(5):
        annotation = factories.Annotation()
        bucket_1.append(annotation)
        bucket_2.append(annotation)
    assert (bucket_1 == bucket_2)