Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
    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'
        ]
Beispiel #4
0
    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']