From aa408e9b2dbb90c5dcb9938b70db7b169c9a5c7c Mon Sep 17 00:00:00 2001 From: Bill Flynn Date: Fri, 5 Jan 2018 21:31:46 -0500 Subject: [PATCH] [#95] updated doi tests --- tests/test_doi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_doi.py b/tests/test_doi.py index 4b345a6..e694973 100644 --- a/tests/test_doi.py +++ b/tests/test_doi.py @@ -3,9 +3,9 @@ from __future__ import unicode_literals import unittest -from pubs.p3 import ustr from pubs.utils import standardize_doi + class TestDOIStandardization(unittest.TestCase): def setUp(self): @@ -59,7 +59,7 @@ class TestDOIStandardization(unittest.TestCase): sdoi = standardize_doi(doi) self.assertEqual(sdoi, '10.1109/5.771073') - def test_doi_colon_org(self): + def test_doi_colon(self): doi = 'doi:10.1109/5.771073' sdoi = standardize_doi(doi) self.assertEqual(sdoi, '10.1109/5.771073') @@ -76,5 +76,5 @@ class TestDOIStandardization(unittest.TestCase): def test_currently_not_supported(self): for doi in self.currently_not_supported: - sdoi = standardize_doi(doi) - self.assertIs(sdoi, None) + with self.assertRaises(ValueError): + standardize_doi(doi)