예제 #1
0
 def test_settings_required(self):
     with self.assertRaises(ImproperlyConfigured):
         client_connect()
예제 #2
0
 def test_connect_access_token(self):
     with self.assertRaises(NoAuthorizationError):
         try:
             client_connect()
         except requests.exceptions.ConnectionError:
             self.skipTest("No Internet connection")
예제 #3
0
 def get_client():
     return client_connect()