コード例 #1
0
ファイル: test_controllers.py プロジェクト: aklapcin/gae_blog
    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)
コード例 #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)
コード例 #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'
        ]
コード例 #4
0
ファイル: test_controllers.py プロジェクト: aklapcin/gae_blog
    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']