

def test_meta(self):
    doc = Document({
        'og': {
            'title': ['Example Page'],
            'url': ['http://example.com'],
        },
        'title': ['Example Page'],
        'link': ['http://example.com', 'https://example.com'],
    }, claimant='http://example.com', created=datetime.datetime(2016, 2, 25, 16, 45, 23, 371848), updated=datetime.datetime(2016, 2, 25, 16, 45, 23, 371849))
    expected = [DocumentMeta({
        'type': 'og.title',
        'value': ['Example Page'],
        'claimant': 'http://example.com',
        'created': datetime.datetime(2016, 2, 25, 16, 45, 23, 371848),
        'updated': datetime.datetime(2016, 2, 25, 16, 45, 23, 371849),
    }), DocumentMeta({
        'type': 'og.url',
        'value': ['http://example.com'],
        'claimant': 'http://example.com',
        'created': datetime.datetime(2016, 2, 25, 16, 45, 23, 371848),
        'updated': datetime.datetime(2016, 2, 25, 16, 45, 23, 371849),
    }), DocumentMeta({
        'type': 'title',
        'value': ['Example Page'],
        'claimant': 'http://example.com',
        'created': datetime.datetime(2016, 2, 25, 16, 45, 23, 371848),
        'updated': datetime.datetime(2016, 2, 25, 16, 45, 23, 371849),
    })]
    assert (sorted(self.meta) == sorted(expected))

dataset/ETHPy150Open hypothesis/h/h/api/models/test/elastic_test.py TestDocument.test_meta/VarMisuse@314/445 `doc`->`self`