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

@override_settings(CMS_TEMPLATES_DIR=BAD_PATH)
def test_custom_templates_bad_dir(self):

    templates = get_cms_setting('TEMPLATES')
    for template in templates:
        if (template[0] != constants.TEMPLATE_INHERITANCE_MAGIC):
            with self.assertRaises(TemplateDoesNotExist):
                loader.get_template(template[0])
