def test_d_html_gen_ul_no_value(self): """Test case for gen UL without values""" theResult = True try: from lint import html_generator as html_generator except Exception: import lint.html_generator as html_generator if html_generator.__name__ is None: theResult = False else: try: output_gen = html_generator.gen_html_ul([None]) if (str("<ul") in output_gen and str("</ul>") in output_gen): theResult = True else: theResult = False self.assertIsNone(html_generator.gen_html_ul(None)) except Exception as err: print(str("")) print(str(type(err))) print(str(err)) print(str((err.args))) print(str("")) err = None del err theResult = False assert theResult
def test_d_html_gen_ul_id_name(self): """Test case for gen UL without name but with id""" theResult = False try: from lint import html_generator as html_generator except Exception: import lint.html_generator as html_generator if html_generator.__name__ is None: theResult = False else: try: output_gen = html_generator.gen_html_ul(["this is a test"], tagid="test_id", name=None) if (str("<ul") in output_gen and str("""name=\"test_id\"""") in output_gen): theResult = True else: theResult = False except Exception as err: print(str("")) print(str(type(err))) print(str(err)) print(str((err.args))) print(str("")) err = None del err theResult = False assert theResult