Esempio n. 1
0
def test_proxy_repr():
    @ring.dict({})
    def f():
        pass

    assert repr(ring.dict)
    assert repr(ring.dict({}))
    assert repr(f)
Esempio n. 2
0
def test_proxy_cache():

    dring = ring.dict({})

    @dring
    def f1():
        pass

    @dring
    def f2():
        pass