def test_sub_list(self): self.assertIn("dolor", dict2form(my_dict_with_sub_list))
def test_int_value(self): self.assertIn("666", dict2form(my_dict_with_int_value))
def test_submit(self): self.assertIn("submit", dict2form(my_dict))
def test_in_form(self): self.assertIn("<form", dict2form(my_dict))
def test_type(self): self.assertIsInstance(dict2form(my_dict), str)
def render(self, dictionary, name="object", method="POST", xsrf=None): hide = ['_id', 'slug', 'id'] xsrf = xsrf.split('value="')[1].split('"')[0] return dict2form(dictionary, name=name, hide=hide, xsrf=xsrf)
def render(self, dictionary, name="object", method="POST", xsrf=None): hide = ["_id", "slug", "id"] xsrf = xsrf.split('value="')[1].split('"')[0] return dict2form(dictionary, name=name, hide=hide, xsrf=xsrf)