Show
Ignore:
Timestamp:
03/28/08 08:51:04 (8 months ago)
Author:
JensDiemer
Message:

Updating the cache middleware:

  • Splitting pagestats from cache is a good idea, after all ;)
  • add a debug information in the response
  • verify the shortcut from the url
  • update unittests
Files:
1 modified

Legend:

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

    r1509 r1511  
    3737 
    3838CHARACTER_VARIANTS = ( 
    39     "<", "\x3c", "\x3C", u"\u003c", u"\u003C", 
     39    "<", r"\x3c", r"\x3C", r"\u003c", u"\u003c", u"\u003C", 
    4040#    "&#60", "&#060", "&#0060", "&#00060", "&#000060", "&#0000060", "&#60;", 
    4141#    "&#060;", "&#0060;", "&#00060;", "&#000060;", "&#0000060;", 
     
    143143        for char_variant in CHARACTER_VARIANTS: 
    144144            test_string = char_variant + VARIANTS_STRING 
    145             response = self.client.get("/" + test_string) 
     145            url = "/" + test_string 
     146            response = self.client.get(url) 
    146147            self.assertResponse( 
    147148                response, must_not_contain=(test_string, "<" + VARIANTS_STRING,) 
     
    167168                    self.assertResponse( 
    168169                        response, 
    169                         must_not_contain=(test_string, "<" + VARIANTS_STRING,) 
     170                        must_not_contain=("<" + VARIANTS_STRING,) 
    170171                    ) 
    171172 
     
    184185                self.assertResponse( 
    185186                    response, 
    186                     must_not_contain=(test_string, "<" + VARIANTS_STRING,) 
     187                    must_not_contain=("<" + VARIANTS_STRING,) 
    187188                ) 
    188189