示例#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))
示例#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))
示例#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))
示例#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))
示例#5
0
 def Test(title):
     result = '\n'.join(gen_html.html_header(title, False))
     self.assertNotIn('<title', result)
示例#6
0
 def testHtmlHeader_NoScript(self):
     result = '\n'.join(gen_html.html_header('', False))
     self.assertNotIn('<script', result)
示例#7
0
 def Test(title):
     result = '\n'.join(gen_html.html_header(title, False))
     self.assertNotIn('<title', result)
示例#8
0
 def testHtmlHeader_NoScript(self):
     result = '\n'.join(gen_html.html_header('', False))
     self.assertNotIn('<script', result)