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