def test_init_sets_the_document_title(self, db_session, document):
    title_meta = factories.DocumentMeta(type='title', value=['The Document Title'], document=document)
    document.title = 'The Document Title'
    db_session.add(title_meta)
    db_session.flush()
    bucket = bucketing.DocumentBucket(document)
    assert (bucket.title == 'The Document Title')
def test_init_sets_the_document_title(self, db_session, document):
    title_meta = factories.DocumentMeta(type='title', value=['The Document Title'], document=document)
    document.title = 'The Document Title'
    db_session.add(title_meta)
    db_session.flush()
    bucket = bucketing.DocumentBucket(document)
    assert (bucket.title == 'The Document Title')