from Testing import ZopeTestCase

from DateTime import DateTime
# from Products.PloneTestCase import PloneTestCase

for p in ['CMFContentPanels']:
    ZopeTestCase.installProduct(p)

from Products.PloneTestCase import PloneTestCase

PRODUCTS = ['CMFContentPanels']

PloneTestCase.setupPloneSite(products=PRODUCTS)

import os

class TestCase(PloneTestCase.PloneTestCase):

    class Session(dict):
        def set(self, key, value):
            self[key] = value

    def _setup(self):
        PloneTestCase.PloneTestCase._setup(self)
        self.app.REQUEST['SESSION'] = self.Session()

    def assert_same_list(self, list1, list2):
        list1.sort()
        list2.sort()
        self.assert_(list1 == list2)

