code: def test_secure_httponly_true_if_have_value(self):
      # This isn't really valid, but demonstrates what the current code
      # is expected to do in this case.
      C = cookies.SimpleCookie()
      C.load("eggs=scrambled; httponly=foo; secure=bar; Path=/bacon")
      self.assertTrue(C["eggs"]["httponly"])
      self.assertTrue(C["eggs"]["secure"])
      # Here is what it actually does; don't depend on this behavior.  These
      # checks are testing backward compatibility for issue 16611.
      self.assertEqual(C["eggs"]["httponly"], "foo")
      self.assertEqual(C["eggs"]["secure"], "bar")
  
imports: import copy
  import unittest
  import doctest
  from http import cookies
  import pickle
label_desc: Use image node_id 9 for calling the CookieTests obj's underlying member method code with example usage: obj.test_secure_httponly_true_if_have_value() without return types