Esempio n. 1
0
 def testHtmlHeader_Script(self):
     lines = gen_html.html_header('', True)
     for item in lines:
         if '<script' in item:
             break
     else:
         self.fail('No script in: %s' % '\n'.join(lines))
Esempio n. 2
0
 def testHtmlHeader_Script(self):
     lines = gen_html.html_header('', True)
     for item in lines:
       if '<script' in item:
         break
     else:
       self.fail('No script in: %s' % '\n'.join(lines))
Esempio n. 3
0
 def testHtmlHeader_Title(self):
     lines = gen_html.html_header('foo', False)
     for item in lines:
         if '<title' in item:
             self.assertIn('foo', item)
             break
     else:
         self.fail('No foo in: %s' % '\n'.join(lines))
Esempio n. 4
0
 def testHtmlHeader_Title(self):
     lines = gen_html.html_header('foo', False)
     for item in lines:
       if '<title' in item:
         self.assertIn('foo', item)
         break
     else:
       self.fail('No foo in: %s' % '\n'.join(lines))
Esempio n. 5
0
 def Test(title):
     result = '\n'.join(gen_html.html_header(title, False))
     self.assertNotIn('<title', result)
Esempio n. 6
0
 def testHtmlHeader_NoScript(self):
     result = '\n'.join(gen_html.html_header('', False))
     self.assertNotIn('<script', result)
Esempio n. 7
0
 def Test(title):
     result = '\n'.join(gen_html.html_header(title, False))
     self.assertNotIn('<title', result)
Esempio n. 8
0
 def testHtmlHeader_NoScript(self):
     result = '\n'.join(gen_html.html_header('', False))
     self.assertNotIn('<script', result)