Example #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)
Example #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)
Example #3
0
 def setUpClass(cls):
     set_client(Client('u-user', 't-token', 's-secret'))
Example #4
0
 def tearDownClass(cls):
     set_client(None)
Example #5
0
 def tearDown(self):
     set_client(None)
Example #6
0
 def setUpClass(cls):
     set_client(Client('u-user', 't-token', 's-secret'))
Example #7
0
 def tearDownClass(cls):
     set_client(None)
Example #8
0
 def setUp(self):
     set_client(None)
Example #9
0
 def setUp(self):
     set_client(None)