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

@override_settings(CMS_TEMPLATES_DIR=SITE_PATH)
def test_multisite(self):

    templates = get_cms_setting('TEMPLATES')
    for template in templates:
        if (template[0] != constants.TEMPLATE_INHERITANCE_MAGIC):
            self.assertTrue((template[0].find(('%s/' % SITE_PATH[1])) >= (-1)))
    with self.settings(SITE_ID=2):
        templates = get_cms_setting('TEMPLATES')
        for template in templates:
            if (template[0] != constants.TEMPLATE_INHERITANCE_MAGIC):
                self.assertTrue((template[0].find(('%s/' % SITE_PATH[2])) >= (-1)))
