def test_query_url_of_doi_object_with_protocol(self): doi = DOI(self.valid_doi_with_protocol) self.assertEqual(doi.get_URL(), "http://dx.doi.org/10.1063/1.3458497") self.assertEqual(doi.get_identifier(), "10.1063/1.3458497")
def test_query_url_of_undefined_doi_object(self): doi = DOI() self.assertEqual(doi.get_URL(), None)