コード例 #1
0
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"
コード例 #2
0
ファイル: test_url_helper.py プロジェクト: imgix/imgix-python
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"
コード例 #3
0
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"