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")
def setUp(self): load_config() self.client = SoundcloudClient(os.environ['SOUNDCLOUD_CLIENT_ID'])
def test_no_client_id(self): """Test that proper error is raised when no client id is provided """ with self.assertRaises(TypeError): SoundcloudClient()