'CookieStorage honors SESSION_COOKIE_DOMAIN, SESSION_COOKIE_SECURE, and
SESSION_COOKIE_HTTPONLY (#15618, #20972).'

def test_cookie_setings(self):

    storage = self.get_storage()
    response = self.get_response()
    storage.add(constants.INFO, 'test')
    storage.update(response)
    self.assertIn('test', response.cookies['messages'].value)
    self.assertEqual(response.cookies['messages']['domain'], '.example.com')
    self.assertEqual(response.cookies['messages']['expires'], '')
    self.assertIs(response.cookies['messages']['secure'], True)
    self.assertIs(response.cookies['messages']['httponly'], True)
    storage = self.get_storage()
    response = self.get_response()
    storage.add(constants.INFO, 'test')
    for m in storage:
        pass
    storage.update(response)
    self.assertEqual(response.cookies['messages'].value, '')
    self.assertEqual(response.cookies['messages']['domain'], '.example.com')
    self.assertEqual(response.cookies['messages']['expires'], 'Thu,    01-Jan-1970    00:00:00    GMT')
