def test_adds_parameters(): qs = QueryDict("order_by=x", encoding="utf-8") assert build("/", qs, page=1) == "/?order_by=x&page=1"
def test_overrides_parameters(): qs = QueryDict("order_by=x", encoding="utf-8") assert build("/", qs, order_by="y") == "/?order_by=y"
def test_rebuilds_urls(): qs = QueryDict("order_by=x", encoding="utf-8") assert build("/", qs) == "/?order_by=x"