def test_theme_switches(self):
        """Theme based template switches."""
        settings.THEME_PATH.append(dirname(__file__))
        settings.THEME = 'test_theme'
        templating.refresh_theme()

        resp = self.client.get('/en/')
        self.assert_('I AM THE TEST THEME HEAD' in resp.data)
        self.assert_('_themes/test_theme' in resp.data)
dataset/ETHPy150Open mitsuhiko/solace/solace/tests/templating.py/TemplatingTestCase.test_theme_switches/original