Beispiel #1
0
 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))
Beispiel #2
0
 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))