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()
Example #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()
 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()
Example #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()
 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()