コード例 #1
0
 def test_view_urlencoded(self):
     d = utils.urlencode([("one", "two"), ("three", "four")])
     v = cv.ViewURLEncoded()
     assert v([], d, 100)
     d = utils.urlencode([("adsfa", "")])
     v = cv.ViewURLEncoded()
     assert v([], d, 100)
コード例 #2
0
ファイル: test_utils.py プロジェクト: LordMike/mitmproxy
def test_urlencode():
    assert utils.urlencode([('foo','bar')])
コード例 #3
0
def test_urlencode():
    assert utils.urlencode([('foo','bar')])
コード例 #4
0
 def test_view_urlencoded(self):
     d = utils.urlencode([("one", "two"), ("three", "four")])
     assert cv.view_urlencoded([], d, 100)
     assert not cv.view_urlencoded([], "foo", 100)
コード例 #5
0
ファイル: test_utils.py プロジェクト: smurfix/mitmproxy
def test_urlencode():
    assert utils.urlencode([("foo", "bar")])