def test_delete_all_parameters(): helper = UrlHelper('my-social-network.imgix.net', '/users/1.png', opts={'h': 300, 'w': 400}, sign_with_library_version=False) helper.delete_parameter('w') helper.delete_parameter('h') assert str(helper) == "https://my-social-network.imgix.net/users/1.png"
def test_delete_all_parameters(): helper = UrlHelper('my-social-network.imgix.net', '/users/1.png', params={'h': 300, 'w': 400}, include_library_param=False) helper.delete_parameter('w') helper.delete_parameter('h') assert str(helper) == "https://my-social-network.imgix.net/users/1.png"
def test_delete_all_parameters(): helper = UrlHelper('my-social-network.imgix.net', '/users/1.png', params={ 'h': 300, 'w': 400 }, include_library_param=False) helper.delete_parameter('w') helper.delete_parameter('h') assert str(helper) == "https://my-social-network.imgix.net/users/1.png"