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/py_cache_manager-HEAD/tests/wrap_tests.py   py_cache_manager(Download)
        self.assertIsNone(cache.contents) # No content to load
 
        cache.load_or_build()
        self.assert_contents_equal(cache, {})
 
        cache.save()
 
        cache.load_or_build() # Invalid load, force rebuild
        self.assert_contents_equal(cache, ['built'])
        cache[0] = 'changed'
        self.assertIsNone(dependent_cache.contents)
 
        parent_cache.load_or_build(True)
        self.assertDictEqual(dependent_cache.contents, {})
        dependent_cache['foo'] = 'bar'