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)
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)
def test_urlencode(): assert utils.urlencode([("foo", "bar")])