Exemplo n.º 1
0
 def test_doi_url(self):
     doi = 'sdflkj'
     article = Article(doi=doi)
     with self.assertRaises(exceptions.DOIError):
         article.url()
Exemplo n.º 2
0
 def test_doi_url(self):
     article = Article(doi=self.perspective_paper_doi)
     real_url = 'http://pubs.acs.org/doi/10.1021/acs.chemmater.6b05114'
     self.assertEqual(article.url(), real_url)