Show
Ignore:
Timestamp:
03/27/08 16:59:44 (8 months ago)
Author:
JensDiemer
Message:

add a experimental new cache middleware
-merge pagestats into cache middleware
-add unitest for the cache
-move setup_debug() from the views into the common middleware
-update other tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/tests/stylesheet.py

    r1476 r1510  
    5252        Page.objects.all().delete() # Delete all existins pages 
    5353 
    54         self.template = tests.create_template("{% lucidTag page_style %}") 
     54        self.template = tests.create_template( 
     55            content = "{% lucidTag page_style %}" 
     56        ) 
    5557        self.style = tests.create_stylesheet( 
    5658            name = "TestStyle", content = TEST_STYLE_CONTENT, 
     
    9092        """ Return the stylesheet link contains in the root cms page. """ 
    9193        response = self.client.get("/") 
     94        from_cache = response.get("from_cache", None) 
     95        print from_cache 
    9296        content = response.content 
    9397        links = self._exctract_stylelinks(content) 
     
    150154        must_link = self._get_stylelink() 
    151155        is_link = self._get_content_link() 
    152         assert is_link == must_link 
     156        self.failUnlessEqual(must_link, is_link) 
    153157 
    154158    def test_command_link(self):