1 | from Products.CacheSetup.config import PROJECT_NAME |
---|
2 | from Testing import ZopeTestCase |
---|
3 | |
---|
4 | # Let Zope know about the two products we require above-and-beyond a basic |
---|
5 | # Plone install (PloneTestCase takes care of these). |
---|
6 | ZopeTestCase.installProduct(PROJECT_NAME) |
---|
7 | |
---|
8 | # Let Zope know about the two products we require above-and-beyond a basic |
---|
9 | # Plone install (PloneTestCase takes care of these). |
---|
10 | #ZopeTestCase.installProduct('PageCacheManager') |
---|
11 | ZopeTestCase.installProduct('CMFSquidTool') |
---|
12 | #ZopeTestCase.installProduct('PythonScripts') |
---|
13 | #ZopeTestCase.installProduct(PROJECT_NAME) |
---|
14 | |
---|
15 | # Import PloneTestCase - this registers more products with Zope as a side effect |
---|
16 | from Products.PloneTestCase.PloneTestCase import PloneTestCase |
---|
17 | from Products.PloneTestCase.PloneTestCase import FunctionalTestCase |
---|
18 | from Products.PloneTestCase.PloneTestCase import setupPloneSite |
---|
19 | |
---|
20 | # Set up a Plone site |
---|
21 | setupPloneSite(products=[PROJECT_NAME]) |
---|
22 | |
---|
23 | class CacheFuTestCase(PloneTestCase): |
---|
24 | """Base class for integration tests for the 'CacheSetup' product. This may |
---|
25 | provide specific set-up and tear-down operations, or provide convenience |
---|
26 | methods. |
---|
27 | """ |
---|
28 | class CacheFuFunctionalTestCase(FunctionalTestCase): |
---|
29 | """Base class for functional integration tests for the 'CacheSetup' product. |
---|
30 | This may provide specific set-up and tear-down operations, or provide |
---|
31 | convenience methods. |
---|
32 | """ |
---|