

def test_url_query():
    mock = Mock()
    mock.request.args.get.return_value = '42'
    url_query = URLQueryProperty(name='value')
    rv = url_query.provide_value(mock)
    assert (rv == '42')
    mock.request.args.get.assert_called_once_with('value', type=None)

dataset/ETHPy150Open douban/brownant/tests/test_pipeline/test_network.py test_url_query/original