14 """Tests the implementations module of the gRPC Python Beta API.""" 
   20 from oauth2client 
import client 
as oauth2client_client
 
   28         channel_credentials = implementations.ssl_channel_credentials()
 
   29         self.assertIsInstance(channel_credentials,
 
   30                               implementations.ChannelCredentials)
 
   33         channel_credentials = implementations.ssl_channel_credentials(
 
   34             resources.test_root_certificates())
 
   35         self.assertIsInstance(channel_credentials,
 
   36                               implementations.ChannelCredentials)
 
   42         creds = oauth2client_client.GoogleCredentials(
 
   43             'token', 
'client_id', 
'secret', 
'refresh_token',
 
   44             datetime.datetime(2008, 6, 24), 
'https://refresh.uri.com/',
 
   46         call_creds = implementations.google_call_credentials(creds)
 
   47         self.assertIsInstance(call_creds, implementations.CallCredentials)
 
   50         call_creds = implementations.access_token_call_credentials(
'token')
 
   51         self.assertIsInstance(call_creds, implementations.CallCredentials)
 
   54 if __name__ == 
'__main__':
 
   55     unittest.main(verbosity=2)