'Makes sure that the cookie being set in a Microsite
is the one specially overridden in configuration'

@ddt.data(*MICROSITE_BACKENDS)
def test_session_cookie_domain_with_microsite_override(self, site_backend):

    with patch('microsite_configuration.microsite.BACKEND', get_backend(site_backend, BaseMicrositeBackend)):
        response = self.client.get('/', HTTP_HOST=settings.MICROSITE_TEST_HOSTNAME)
        self.assertIn('test_site.localhost', str(response.cookies['sessionid']))
