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)
Esempio n. 2
0
def test_urlencode():
    assert utils.urlencode([('foo','bar')])
Esempio n. 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)
Esempio n. 5
0
def test_urlencode():
    assert utils.urlencode([("foo", "bar")])