Exemplo n.º 1
0
 def test_client_id_passed_in(self):
     """Soundcloud: Client ID is correctly read from passed-in args
     """
     try:
         SoundcloudClient('XXXX')
     except:
         self.fail("Exception unexpectedly raised")
Exemplo n.º 2
0
 def setUp(self):
     load_config()
     self.client = SoundcloudClient(os.environ['SOUNDCLOUD_CLIENT_ID'])
Exemplo n.º 3
0
 def test_no_client_id(self):
     """Test that proper error is raised when no client id is provided
     """
     with self.assertRaises(TypeError):
         SoundcloudClient()