MCPcopy
hub / github.com/django/django / test_message_rfc6265

Method test_message_rfc6265

tests/messages_tests/test_cookie.py:155–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 self.assertEqual(unstored_messages[0].message, first_msg)
154
155 def test_message_rfc6265(self):
156 non_compliant_chars = ["\\", ",", ";", '"']
157 messages = ["\\te,st", ';m"e', "\u2019", '123"NOTRECEIVED"']
158 storage = self.get_storage()
159 encoded = storage._encode(messages)
160 for illegal in non_compliant_chars:
161 self.assertEqual(encoded.find(illegal), -1)
162
163 def test_json_encoder_decoder(self):
164 """

Callers

nothing calls this directly

Calls 3

_encodeMethod · 0.80
get_storageMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected