Example #1
0
 def _(_):
     expect(parseQuery("?a=A&a=B"))  == web.Storage(a=['A', 'B'])
     expect(parseQuery("?a=A&a=B&a=C"))  == web.Storage(a=['A', 'B', 'C'])
Example #2
0
 def _(_):
     expect(parseQuery("?a&a=B"))  == web.Storage(a=[True, 'B'])
     expect(parseQuery("?a=A&a"))  == web.Storage(a=['A', True])
Example #3
0
 def _(_):
     expect(parseQuery("?a&b=B"))  == web.Storage(a=True, b='B')
Example #4
0
 def _(_):
     expect(parseQuery("?a=A&b=B"))  == web.Storage(a='A', b='B')
Example #5
0
 def _(_):
     expect(parseQuery("?a=A=B"))  == web.Storage(a='A=B')
Example #6
0
 def _(_):
     expect(parseQuery("?a"))  == web.Storage(a=True)
Example #7
0
 def _(_):
     expect(parseQuery("?"))  == web.Storage()