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)
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)