Ejemplo n.º 1
0
 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"
     ])
Ejemplo n.º 2
0
 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"
     ])
Ejemplo n.º 3
0
 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"
     ])