Example #1
0
 def test_should_not_display_tampered_notice(self):
     str = pack('Perfectly legal notice')
     r = self.client.get('/', QueryDict('_notice=' + str[:-1] + 'x'))
     self.assert_not_contains_notices(r)
Example #2
0
 def test_should_not_display_tampered_notice(self):
     str = pack('Perfectly legal notice')
     r = self.client.get('/', QueryDict('_notice=' + str[:-1] + 'x'))
     self.assert_not_contains_notices(r)
Example #3
0
 def test_should_not_display_shorted_notice(self):
     str = pack('Perfectly legal notice')
     print str[:-2]
     r = self.client.get('/', QueryDict('_notice=' + str[:-2]))
     self.assert_not_contains_notices(r)
Example #4
0
 def test_should_not_display_shorted_notice(self):
     str = pack('Perfectly legal notice')
     print str[:-2]
     r = self.client.get('/', QueryDict('_notice=' + str[:-2]))
     self.assert_not_contains_notices(r)