def test_copy_cc():
    from webob.cachecontrol import CacheControl

    cc = CacheControl({"header": "%", "msg": "arewerichyet?"}, "request")
    cc2 = cc.copy()
    assert cc.properties is not cc2.properties
    assert cc.type is cc2.type
示例#2
0
def test_copy_cc():
    from webob.cachecontrol import CacheControl
    cc = CacheControl({'header': '%', "msg": 'arewerichyet?'}, 'request')
    cc2 = cc.copy()
    assert cc.properties is not cc2.properties
    assert cc.type is cc2.type
def test_copy_cc():
    from webob.cachecontrol import CacheControl
    cc = CacheControl({'header':'%', "msg":'arewerichyet?'}, 'request')
    cc2 = cc.copy()
    assert cc.properties is not cc2.properties
    assert cc.type is cc2.type