예제 #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"