def test_make_key_unicode(self):
     translation.activate(u'en-US')
     f = 'fragment\xe9\x9b\xbb\xe8\x85\xa6\xe7\x8e'
     # This would crash with a unicode error.
     caching.make_key(f, with_locale=True)
     translation.deactivate()
Exemplo n.º 2
0
 def test_make_key_unicode(self):
     translation.activate('en-US')
     f = 'fragment\xe9\x9b\xbb\xe8\x85\xa6\xe7\x8e'
     # This would crash with a unicode error.
     base.make_key(f, with_locale=True)
     translation.deactivate()
Exemplo n.º 3
0
 def test_make_key_unicode(self):
     translation.activate(u'en-US')
     f = 'fragment\xe9\x9b\xbb\xe8\x85\xa6\xe7\x8e'
     eq_(caching.make_key(f, with_locale=True),
         'b83d174032efa27bf1c9ce1db19fa6ec')
     translation.deactivate()
Exemplo n.º 4
0
 def test_make_key_unicode(self):
     translation.activate(u"en-US")
     f = "fragment\xe9\x9b\xbb\xe8\x85\xa6\xe7\x8e"
     # This would crash with a unicode error.
     base.make_key(f, with_locale=True)
     translation.deactivate()
Exemplo n.º 5
0
 def test_make_key_unicode(self):
     translation.activate(u'en-US')
     f = 'fragment\xe9\x9b\xbb\xe8\x85\xa6\xe7\x8e'
     eq_(caching.make_key(f, with_locale=True),
         'b83d174032efa27bf1c9ce1db19fa6ec')
     translation.deactivate()