def test_meta_escapes_xss(self):
     self.assertEqual(
         meta('desc"rip&tion', 'Awesome website < about ponies'),
         '<meta name="desc&quot;rip&amp;tion" content="Awesome website &lt; about ponies">'
     )
Esempio n. 2
0
 def test_meta_escapes_xss(self):
     self.assertEqual(
         meta('desc"rip&tion', 'Awesome website < about ponies'),
         '<meta name="desc&quot;rip&amp;tion" content="Awesome website &lt; about ponies">'
     )
 def test_meta_basically_works(self):
     self.assertEqual(
         meta('description', 'Awesome website about ponies'),
         '<meta name="description" content="Awesome website about ponies">'
     )
Esempio n. 4
0
 def test_meta_basically_works(self):
     self.assertEqual(
         meta('description', 'Awesome website about ponies'),
         '<meta name="description" content="Awesome website about ponies">')