'Checking that templates can be loaded by the template loader'

@override_settings(CMS_TEMPLATES_DIR=GOOD_PATH)
def test_custom_templates_loading(self):

    templates = get_cms_setting('TEMPLATES')
    for template in templates:
        if (template[0] != constants.TEMPLATE_INHERITANCE_MAGIC):
            tpl = loader.get_template(template[0])
            self.assertEqual(tpl.template.name, template[0])
