def test_append_adds_unique_annotation_tag_to_bucket(self, document):
    ann_1 = factories.Annotation(tags=['foo', 'bar'])
    ann_2 = factories.Annotation(tags=['foo', 'baz'])
    bucket = bucketing.DocumentBucket(document)
    bucket.append(ann_1)
    bucket.append(ann_2)
    assert (bucket.tags == {'foo', 'bar', 'baz'})
def test_append_adds_unique_annotation_tag_to_bucket(self, document):
    ann_1 = factories.Annotation(tags=['foo', 'bar'])
    ann_2 = factories.Annotation(tags=['foo', 'baz'])
    bucket = bucketing.DocumentBucket(document)
    bucket.append(ann_1)
    bucket.append(ann_2)
    assert (bucket.tags == {'foo', 'bar', 'baz'})