Exemplo n.º 1
0
 def test_get_params_from_url(self):
     r = Mock()
     r.GET = {'params': 'foo:bar|qux:mux'}
     res = get_params_from_request(r)
     self.assertEqual(res['foo'], 'bar')
     self.assertEqual(res['qux'], 'mux')
 def test_get_params_from_url(self):
     r = Mock()
     r.GET = {'params': 'foo:bar|qux:mux'}
     res = get_params_from_request(r)
     self.assertEqual(res['foo'], 'bar')
     self.assertEqual(res['qux'], 'mux')