you can do a self.assertTrue(constants.TEMPLATE_INHERITANCE_MAGIC in get_cms_setting('TEMPLATES'))