def test_append_adds_unique_annotation_user_to_bucket(self, document):
    ann_1 = factories.Annotation(userid='luke')
    ann_2 = factories.Annotation(userid='alice')
    ann_3 = factories.Annotation(userid='luke')
    bucket = bucketing.DocumentBucket(document)
    bucket.append(ann_1)
    bucket.append(ann_2)
    bucket.append(ann_3)
    assert (bucket.users == {'luke', 'alice'})
def test_append_adds_unique_annotation_user_to_bucket(self, document):
    ann_1 = factories.Annotation(userid='luke')
    ann_2 = factories.Annotation(userid='alice')
    ann_3 = factories.Annotation(userid='luke')
    bucket = bucketing.DocumentBucket(document)
    bucket.append(ann_1)
    bucket.append(ann_2)
    bucket.append(ann_3)
    assert (bucket.users == {'luke', 'alice'})