def test_get_full_quoted_path_unicode(self):
     u = UrlHelper('/foo/bar?foo=слово&bar=2#foo')
     self.assertEqual(
         u.get_full_quoted_path(),
         '/foo/bar%3Ffoo%3D%25D1%2581%25D0%25BB%25D0%25BE%25D0'
         '%25B2%25D0%25BE%26bar%3D2%23foo')
Ejemplo n.º 2
0
 def test_get_full_quoted_path_unicode(self):
     u = UrlHelper('/foo/bar?foo=слово&bar=2#foo')
     self.assertEqual(u.get_full_quoted_path(),
                      '/foo/bar%3Ffoo%3D%25D1%2581%25D0%25BB%25D0%25BE%25D0'
                      '%25B2%25D0%25BE%26bar%3D2%23foo')
 def test_get_full_quoted_path(self):
     u = UrlHelper('/foo/bar?foo=1&bar=2#foo')
     self.assertEqual(u.get_full_quoted_path(),
                      '/foo/bar%3Ffoo%3D1%26bar%3D2%23foo')
Ejemplo n.º 4
0
 def test_get_full_quoted_path(self):
     u = UrlHelper('/foo/bar?foo=1&bar=2#foo')
     self.assertEqual(u.get_full_quoted_path(),
                      '/foo/bar%3Ffoo%3D1%26bar%3D2%23foo')