def test_uris_recognize_highwire_pdf(self):
        doc = Document({'link': [{'href': 'pdf-uri', 'type': 'application/pdf'}]},
                       claimant='http://example.com')

        expected = [DocumentURI({'claimant': 'http://example.com',
                                 'uri': 'pdf-uri',
                                 'type': 'highwire-pdf',
                                 'content_type': 'application/pdf',
                                 'created': None, 'updated': None}),

                    DocumentURI({'claimant': 'http://example.com',
                                 'uri': 'http://example.com',
                                 'type': 'self-claim',
                                 'created': None, 'updated': None})]

        assert sorted(doc.document_uris) == sorted(expected)
dataset/ETHPy150Open hypothesis/h/h/api/models/test/elastic_test.py/TestDocument.test_uris_recognize_highwire_pdf/original