class_docstr: Tests for the Morsel object.
class_docstr_tok: ["Tests","for","the","Morsel","object","."]
code: def test_copy(self):
      morsel_a = cookies.Morsel()
      morsel_a.set("foo", "bar", "baz")
      morsel_a.update(
          {
              "version": 2,
              "comment": "foo",
          }
      )
      morsel_b = morsel_a.copy()
      self.assertIsInstance(morsel_b, cookies.Morsel)
      self.assertIsNot(morsel_a, morsel_b)
      self.assertEqual(morsel_a, morsel_b)
  
      morsel_b = copy.copy(morsel_a)
      self.assertIsInstance(morsel_b, cookies.Morsel)
      self.assertIsNot(morsel_a, morsel_b)
      self.assertEqual(morsel_a, morsel_b)
  
imports: import copy
  import unittest
  import doctest
  from http import cookies
  import pickle
label_desc: Use image node_id 6 for calling the MorselTests obj's underlying member method code with example usage: obj.test_copy() without return types