code: def test_basic(self):
      cases = [
          {
              "data": "chips=ahoy; vienna=finger",
              "dict": {"chips": "ahoy", "vienna": "finger"},
              "repr": "<SimpleCookie: chips='ahoy' vienna='finger'>",
              "output": "Set-Cookie: chips=ahoy\nSet-Cookie: vienna=finger",
          },
          {
              "data": 'keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;"',
              "dict": {"keebler": 'E=mc2; L="Loves"; fudge=\012;'},
              "repr": """<SimpleCookie: keebler='E=mc2; L="Loves"; fudge=\\n;'>""",
              "output": 'Set-Cookie: keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;"',
          },
          # Check illegal cookies that have an '=' char in an unquoted value
          {
              "data": "keebler=E=mc2",
              "dict": {"keebler": "E=mc2"},
              "repr": "<SimpleCookie: keebler='E=mc2'>",
              "output": "Set-Cookie: keebler=E=mc2",
          },
          # Cookies with ':' character in their name. Though not mentioned in
          # RFC, servers / browsers allow it.
          {
              "data": "key:term=value:term",
              "dict": {"key:term": "value:term"},
              "repr": "<SimpleCookie: key:term='value:term'>",
              "output": "Set-Cookie: key:term=value:term",
          },
          # issue22931 - Adding '[' and ']' as valid characters in cookie
          # values as defined in RFC 6265
          {
              "data": "a=b; c=[; d=r; f=h",
              "dict": {"a": "b", "c": "[", "d": "r", "f": "h"},
              "repr": "<SimpleCookie: a='b' c='[' d='r' f='h'>",
              "output": "\n".join(
                  (
                      "Set-Cookie: a=b",
                      "Set-Cookie: c=[",
                      "Set-Cookie: d=r",
                      "Set-Cookie: f=h",
                  )
              ),
          },
      ]
  
      for case in cases:
          C = cookies.SimpleCookie()
          C.load(case["data"])
          self.assertEqual(repr(C), case["repr"])
          self.assertEqual(C.output(sep="\n"), case["output"])
          for k, v in sorted(case["dict"].items()):
              self.assertEqual(C[k].value, v)
  
imports: import copy
  import unittest
  import doctest
  from http import cookies
  import pickle
label_desc: Use image node_id 1 for calling the CookieTests obj's underlying member method code with example usage: obj.test_basic() without return types