def test_default_style_state(): u = URL('test') hash(u) u.__setstate__((None, { '_val': 'test', '_strict': False, '_cache': {'hash': 1}, })) assert not u._cache assert u._val == 'test' assert u._strict is False
def test_default_style_state(): u = URL("test") hash(u) u.__setstate__((None, { "_val": "test", "_strict": False, "_cache": { "hash": 1 } })) assert not u._cache assert u._val == "test"
def test_default_style_state(): u = URL("test") hash(u) u.__setstate__((None, {"_val": "test", "_strict": False, "_cache": {"hash": 1}})) assert not u._cache assert u._val == "test"