Exemple #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'])
Exemple #2
0
 def _(_):
     expect(parseQuery("?a&a=B"))  == web.Storage(a=[True, 'B'])
     expect(parseQuery("?a=A&a"))  == web.Storage(a=['A', True])
Exemple #3
0
 def _(_):
     expect(parseQuery("?a&b=B"))  == web.Storage(a=True, b='B')
Exemple #4
0
 def _(_):
     expect(parseQuery("?a=A&b=B"))  == web.Storage(a='A', b='B')
Exemple #5
0
 def _(_):
     expect(parseQuery("?a=A=B"))  == web.Storage(a='A=B')
Exemple #6
0
 def _(_):
     expect(parseQuery("?a"))  == web.Storage(a=True)
Exemple #7
0
 def _(_):
     expect(parseQuery("?"))  == web.Storage()