aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan van der Lugt <janlugt@gmail.com>2019-01-15 14:20:54 -0800
committerTres Seaver <tseaver@palladion.com>2019-01-15 17:20:54 -0500
commit46164b97e3ed014b0370a35386764ec6c2607501 (patch)
treed7d3536977466d2426fe427a807c48d06cef1849
parent6ed8dbbc1d2e2bee0125d783d33251676e14a72b (diff)
downloadgoogle-api-python-client-upstream-master-backup.tar.gz
Alias unittest2 import as unittest in test__auth.py. (#613)upstream-master-backup
-rw-r--r--tests/test__auth.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test__auth.py b/tests/test__auth.py
index 003098e65..d43fe688e 100644
--- a/tests/test__auth.py
+++ b/tests/test__auth.py
@@ -18,12 +18,12 @@ import google.auth.credentials
import google_auth_httplib2
import httplib2
import oauth2client.client
-import unittest2
+import unittest2 as unittest
from googleapiclient import _auth
-class TestAuthWithGoogleAuth(unittest2.TestCase):
+class TestAuthWithGoogleAuth(unittest.TestCase):
def setUp(self):
_auth.HAS_GOOGLE_AUTH = True
_auth.HAS_OAUTH2CLIENT = False
@@ -77,7 +77,7 @@ class TestAuthWithGoogleAuth(unittest2.TestCase):
self.assertGreater(authorized_http.http.timeout, 0)
-class TestAuthWithOAuth2Client(unittest2.TestCase):
+class TestAuthWithOAuth2Client(unittest.TestCase):
def setUp(self):
_auth.HAS_GOOGLE_AUTH = False
_auth.HAS_OAUTH2CLIENT = True
@@ -127,7 +127,7 @@ class TestAuthWithOAuth2Client(unittest2.TestCase):
self.assertGreater(http.timeout, 0)
-class TestAuthWithoutAuth(unittest2.TestCase):
+class TestAuthWithoutAuth(unittest.TestCase):
def setUp(self):
_auth.HAS_GOOGLE_AUTH = False
@@ -142,7 +142,7 @@ class TestAuthWithoutAuth(unittest2.TestCase):
print(_auth.default_credentials())
-class TestGoogleAuthWithoutHttplib2(unittest2.TestCase):
+class TestGoogleAuthWithoutHttplib2(unittest.TestCase):
def setUp(self):
_auth.google_auth_httplib2 = None