Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/python-cache-HEAD/test/cache_test.py   python-cache(Download)
    assert c() == 1, 'not called the second time'
    assert c.refresh() == 2
    assert backend.get("counter")
 
 
    assert c() == 2, 'called the second time too'
    assert c.cached() == 3, 'called even when you get the cached val'
    assert not backend.get("counter")
 
 
    assert c() == 2
    assert c.cached() == 2, 'not called if you just get the cached val'
    assert backend.get("counter")