def test_clearCache(self): post = self.createPost() post.published = True controller_admin.clearCache(self.blog) keys = controller_admin.getCacheKeys(self.blog) assert not memcache.get_multi(keys)
def test_getCacheKeys(self): post = self.createPost() post.published = True keys = controller_admin.getCacheKeys(self.blog) assert keys == [ '/blog', '/blog/contact', '/blog/feed', '/blog/post/test-post', '/blog/author/test-author' ]
def test_getCacheKeys(self): post = self.createPost() post.published = True keys = controller_admin.getCacheKeys(self.blog) assert keys == ['/blog', '/blog/contact', '/blog/feed', '/blog/post/test-post', '/blog/author/test-author']