Exemple #1
0
 def setUp(self):
     """
     These tests check client creation with different ways of passing in credentials.
     If you have the Catapult credentials set in env vars in the shell you're running make from,
     some of these test will fail.
     Before running make, run:
         $ unset BANDWIDTH_API_SECRET BANDWIDTH_API_TOKEN BANDWIDTH_USER_ID
     """
     set_client(None)
Exemple #2
0
 def test_re_instantiation(self):
     """
     Client re installation.
     """
     previous = Client('u-**********', 't-******', 's-********')
     old_client = set_client(RESTClientObject('u-**********', 't-******', 's-********'))
     self.assertIs(previous, old_client)
Exemple #3
0
 def setUpClass(cls):
     set_client(Client('u-user', 't-token', 's-secret'))
Exemple #4
0
 def tearDownClass(cls):
     set_client(None)
Exemple #5
0
 def tearDown(self):
     set_client(None)
Exemple #6
0
 def setUpClass(cls):
     set_client(Client('u-user', 't-token', 's-secret'))
Exemple #7
0
 def tearDownClass(cls):
     set_client(None)
Exemple #8
0
 def setUp(self):
     set_client(None)
 def setUp(self):
     set_client(None)