Exemplo n.º 1
0
 def test_no_data(self):
     footprint = compute_footprint('GET', '/', {})
     self.assertEqual(footprint, 'GET&/&')
Exemplo n.º 2
0
 def test_data_utf8(self):
     footprint = compute_footprint('GET', '/', dict(param_1='value 1',
         param_2='éà&'))
     self.assertEqual(footprint,
         'GET&/&param_1=value+1&param_2=%C3%A9%C3%A0%26')
Exemplo n.º 3
0
 def test_query_string(self):
     footprint = compute_footprint('GET', '/?param=value', {})
     self.assertEqual(footprint, 'GET&/?param=value&')
Exemplo n.º 4
0
 def test_data(self):
     footprint = compute_footprint('GET', '/', dict(param_1='value 1',
         param_2='value 2'))
     self.assertEqual(footprint, 'GET&/&param_1=value+1&param_2=value+2')