コード例 #1
0
ファイル: tests.py プロジェクト: 0xmilk/appscale
 def test_decode_2(self):
     """
     Test that we haven't broken normal encoding
     """
     c = CompatCookie()
     c['test'] = "\xf0"
     c2 = CompatCookie()
     c2.load(c.output())
     self.assertEqual(c['test'].value, c2['test'].value)
コード例 #2
0
ファイル: tests.py プロジェクト: yekhneek/django-old
 def test_decode_2(self):
     """
     Test that we haven't broken normal encoding
     """
     c = CompatCookie()
     c['test'] = "\xf0"
     c2 = CompatCookie()
     c2.load(c.output())
     self.assertEqual(c['test'].value, c2['test'].value)
コード例 #3
0
ファイル: tests.py プロジェクト: 0xmilk/appscale
 def test_decode(self):
     """
     Test that we can still preserve semi-colons and commas
     """
     c = CompatCookie()
     c['test'] = "An,awkward;value"
     c2 = CompatCookie()
     c2.load(c.output())
     self.assertEqual(c['test'].value, c2['test'].value)
コード例 #4
0
ファイル: tests.py プロジェクト: yekhneek/django-old
 def test_decode(self):
     """
     Test that we can still preserve semi-colons and commas
     """
     c = CompatCookie()
     c['test'] = "An,awkward;value"
     c2 = CompatCookie()
     c2.load(c.output())
     self.assertEqual(c['test'].value, c2['test'].value)