'L{Request.session} and L{Request.secure_session} should be two separate
sessions with unique ids and different cookies.'

def test_sessionDifferentFromSecureSession(self):

    d = DummyChannel()
    d.transport = DummyChannel.SSL()
    request = server.Request(d, 1)
    request.site = server.Site(resource.Resource())
    request.sitepath = []
    secureSession = request.getSession()
    self.assertIsNotNone(secureSession)
    self.addCleanup(secureSession.expire)
    self.assertEqual(request.cookies[0].split('=')[0], 'TWISTED_SECURE_SESSION')
    session = request.getSession(forceNotSecure=True)
    self.assertIsNotNone(session)
    self.assertEqual(request.cookies[1].split('=')[0], 'TWISTED_SESSION')
    self.addCleanup(session.expire)
    self.assertNotEqual(session.uid, secureSession.uid)
