def test_init_sets_domain_to_local_file_when_no_uri_is_set(self, db_session, document):
    docuri_pdf = factories.DocumentURI(uri='urn:x-pdf:fingerprint', document=document)
    db_session.add(docuri_pdf)
    db_session.flush()
    bucket = bucketing.DocumentBucket(document)
    assert (bucket.domain == 'Local file')
def test_init_sets_domain_to_local_file_when_no_uri_is_set(self, db_session, document):
    docuri_pdf = factories.DocumentURI(uri='urn:x-pdf:fingerprint', document=document)
    db_session.add(docuri_pdf)
    db_session.flush()
    bucket = bucketing.DocumentBucket(document)
    assert (bucket.domain == 'Local file')