Ejemplo n.º 1
0
 def test_get_first_valid_template_string_input(self):
     blank_conf = EditRegionConfiguration()
     templates = "sample_editregion_template.html"
     received = blank_conf.get_first_valid_template(possible_templates=templates)
     self.assertIsInstance(received, Template)
Ejemplo n.º 2
0
 def test_get_first_valid_template_failed(self):
     blank_conf = EditRegionConfiguration()
     templates = ["zzzzzz.html"]
     received = blank_conf.get_first_valid_template(possible_templates=templates)
     self.assertIsNone(received)