Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)