def test_uris(self): d = Document({ "id": "1", "title": "document", "link": [peerj["html"], peerj["pdf"]] }) assert_equal(d.uris(), [ "https://peerj.com/articles/53/", "https://peerj.com/articles/53.pdf" ])
def test_uris(self): d = Document({ "id": "1", "title": "document", "link": [{ "href": "https://peerj.com/articles/53/", "type": "text/html" }, { "href": "https://peerj.com/articles/53.pdf", "type": "application/pdf" }], }) assert_equal(d.uris(), [ "https://peerj.com/articles/53/", "https://peerj.com/articles/53.pdf" ])
def test_uris(self): d = Document({ "id": "1", "title": "document", "link": [ { "href": "https://peerj.com/articles/53/", "type": "text/html" }, { "href": "https://peerj.com/articles/53.pdf", "type": "application/pdf" } ], }) assert_equal(d.uris(), [ "https://peerj.com/articles/53/", "https://peerj.com/articles/53.pdf" ])