

def test_document_returns_document_type(self):
    annotation = Annotation(document={
        'title': 'The title',
    })
    assert (type(annotation.document) == Document)

dataset/ETHPy150Open hypothesis/h/h/api/models/test/elastic_test.py TestAnnotation.test_document_returns_document_type/original