#NEWLINE# def test_url_creation( ) : #NEWLINE# #INDENT# 'Test that resources are turned into urls properly.' #NEWLINE# client = soundcloud . Client ( client_id = 'foo' ) #NEWLINE# url = client . _resolve_resource_name ( 'tracks' ) #NEWLINE# eq_ ( 'https://api.soundcloud.com/tracks' , url ) #NEWLINE# url = client . _resolve_resource_name ( '/tracks/' ) #NEWLINE# eq_ ( 'https://api.soundcloud.com/tracks' , url )