Changeset 1511 for trunk/pylucid/tests/security.py
- Timestamp:
- 03/28/08 08:51:04 (8 months ago)
- Files:
-
- 1 modified
-
trunk/pylucid/tests/security.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid/tests/security.py
r1509 r1511 37 37 38 38 CHARACTER_VARIANTS = ( 39 "<", "\x3c", "\x3C", u"\u003c", u"\u003C",39 "<", r"\x3c", r"\x3C", r"\u003c", u"\u003c", u"\u003C", 40 40 # "<", "<", "<", "<", "<", "<", "<", 41 41 # "<", "<", "<", "<", "<", … … 143 143 for char_variant in CHARACTER_VARIANTS: 144 144 test_string = char_variant + VARIANTS_STRING 145 response = self.client.get("/" + test_string) 145 url = "/" + test_string 146 response = self.client.get(url) 146 147 self.assertResponse( 147 148 response, must_not_contain=(test_string, "<" + VARIANTS_STRING,) … … 167 168 self.assertResponse( 168 169 response, 169 must_not_contain=( test_string,"<" + VARIANTS_STRING,)170 must_not_contain=("<" + VARIANTS_STRING,) 170 171 ) 171 172 … … 184 185 self.assertResponse( 185 186 response, 186 must_not_contain=( test_string,"<" + VARIANTS_STRING,)187 must_not_contain=("<" + VARIANTS_STRING,) 187 188 ) 188 189
