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
def test_urlencode():
    assert utils.urlencode([('foo','bar')])
示例#3
0
def test_urlencode():
    assert utils.urlencode([('foo','bar')])
 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
def test_urlencode():
    assert utils.urlencode([("foo", "bar")])