

@pytest.mark.parametrize('annotation', [Annotation({
    'uri': '',
    'target': [{
        'source': 'http://example.com',
    }],
}), Annotation({
    'target': [{
        'source': 'http://example.com',
    }],
})])
def test_target_uri_from_target_source(self, annotation):
    assert (annotation.target_uri == 'http://example.com')

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