def t3(): pipeline.Stage("http://example.com", query_string="=j", a=3)
def t2(): pipeline.Stage("http://example.com", [("a", "b")], a=3)
def t1(): pipeline.Stage("http://example.com", [("a", "b")], query_string="=j")
def test_stage_raw_query(): stage = pipeline.Stage("http://example.com", query_string="=j") assert stage.query_string == "=j"
def test_stage_kwargs(): stage = pipeline.Stage("http://example.com", a=["1", "2"], b="9") assert (stage.query_string == "a=1&a=2&b=9" or stage.query_string == "b=9&a=1&a=2"), stage.query_string
def test_stage_query_args(): stage = pipeline.Stage("http://example.com", [("a", ["1", "2"]), ("b", "9")]) assert stage.query_string == "a=1&a=2&b=9", stage.query_string