@pytest.mark.parametrize('path,args,expected', [('/foo?bar=1', {'bar': 2}, '/foo?bar=2'), ('/foo?bar=1&baz=2', {'bar': None}, '/foo?baz=2')])
def test_path_with_replaced_args(path, args, expected):
    request = Request.fake(path)
    actual = utils.path_with_replaced_args(request, args)
    assert (expected == actual)
@pytest.mark.parametrize('path,args,expected', [('/foo?bar=1', {'bar': 2}, '/foo?bar=2'), ('/foo?bar=1&baz=2', {'bar': None}, '/foo?baz=2')])
def test_path_with_replaced_args(path, args, expected):
    request = Request.fake(path)
    actual = utils.path_with_replaced_args(request, args)
    assert (expected == actual)