コード例 #1
0
def test_adds_parameters():
    qs = QueryDict("order_by=x", encoding="utf-8")
    assert build("/", qs, page=1) == "/?order_by=x&page=1"
コード例 #2
0
def test_overrides_parameters():
    qs = QueryDict("order_by=x", encoding="utf-8")
    assert build("/", qs, order_by="y") == "/?order_by=y"
コード例 #3
0
def test_rebuilds_urls():
    qs = QueryDict("order_by=x", encoding="utf-8")
    assert build("/", qs) == "/?order_by=x"