예제 #1
0
 def t3():
     pipeline.Stage("http://example.com", query_string="=j", a=3)
예제 #2
0
 def t2():
     pipeline.Stage("http://example.com", [("a", "b")], a=3)
예제 #3
0
 def t1():
     pipeline.Stage("http://example.com", [("a", "b")], query_string="=j")
예제 #4
0
def test_stage_raw_query():
    stage = pipeline.Stage("http://example.com", query_string="=j")
    assert stage.query_string == "=j"
예제 #5
0
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
예제 #6
0
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