

def test_basic_support(self):
    c = SecureCookie(secret_key=b'foo')
    assert c.new
    assert (not c.modified)
    assert (not c.should_save)
    c['x'] = 42
    assert c.modified
    assert c.should_save
    s = c.serialize()
    c2 = SecureCookie.unserialize(s, b'foo')
    assert (self is not c2)
    assert (not c2.new)
    assert (not c2.modified)
    assert (not c2.should_save)
    self.assert_equal(c2, c)
    c3 = SecureCookie.unserialize(s, b'wrong foo')
    assert (not c3.modified)
    assert (not c3.new)
    self.assert_equal(c3, {
        
    })

dataset/ETHPy150Open GeekTrainer/Flask/Work/Trivia - Module 5/env/Lib/site-packages/werkzeug/testsuite/contrib/securecookie.py SecureCookieTestCase.test_basic_support/VarMisuse@78/96 `c`->`self`