def test_render_with_specific_list(self): Dashboard.add_dashboard([User]) User.set_display_fields(["name", "email", "options"]) myuser = User() try: html = myuser.html() except Exception as e: self.fail("Error while generating html: " + str(e))
def test_render_new_user(self): Dashboard.add_dashboard([User]) myuser = User() myuser["keytype"]["test1"] = "test1" myuser["keytype"]["test2"] = "test2" try: html = myuser.html() except Exception as e: self.fail("Error while generating html: " + str(e))