'Tests to make sure that a Microsite that specifies None for \'SESSION_COOKIE_DOMAIN\' does not
set a domain on the session cookie'

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

    with patch('microsite_configuration.microsite.get_value') as mock_get_value:
        mock_get_value.side_effect = side_effect_for_get_value('SESSION_COOKIE_DOMAIN', None)
        with patch('microsite_configuration.microsite.BACKEND', get_backend(site_backend, BaseMicrositeBackend)):
            response = self.client.get('/', HTTP_HOST=settings.MICROSITE_TEST_HOSTNAME)
            self.assertNotIn('test_site.localhost', str(response.cookies['sessionid']))
            self.assertNotIn('Domain', str(response.cookies['sessionid']))
