1818import google_auth_httplib2
1919import httplib2
2020import oauth2client .client
21- import unittest2
21+ import unittest2 as unittest
2222
2323from googleapiclient import _auth
2424
2525
26- class TestAuthWithGoogleAuth (unittest2 .TestCase ):
26+ class TestAuthWithGoogleAuth (unittest .TestCase ):
2727 def setUp (self ):
2828 _auth .HAS_GOOGLE_AUTH = True
2929 _auth .HAS_OAUTH2CLIENT = False
@@ -77,7 +77,7 @@ def test_authorized_http(self):
7777 self .assertGreater (authorized_http .http .timeout , 0 )
7878
7979
80- class TestAuthWithOAuth2Client (unittest2 .TestCase ):
80+ class TestAuthWithOAuth2Client (unittest .TestCase ):
8181 def setUp (self ):
8282 _auth .HAS_GOOGLE_AUTH = False
8383 _auth .HAS_OAUTH2CLIENT = True
@@ -127,7 +127,7 @@ def test_authorized_http(self):
127127 self .assertGreater (http .timeout , 0 )
128128
129129
130- class TestAuthWithoutAuth (unittest2 .TestCase ):
130+ class TestAuthWithoutAuth (unittest .TestCase ):
131131
132132 def setUp (self ):
133133 _auth .HAS_GOOGLE_AUTH = False
@@ -142,7 +142,7 @@ def test_default_credentials(self):
142142 print (_auth .default_credentials ())
143143
144144
145- class TestGoogleAuthWithoutHttplib2 (unittest2 .TestCase ):
145+ class TestGoogleAuthWithoutHttplib2 (unittest .TestCase ):
146146 def setUp (self ):
147147 _auth .google_auth_httplib2 = None
148148
0 commit comments