Back to index

plone3  3.1.7
Public Member Functions
ATContentTypes.tests.test_modulealiases.TestModuleAliases Class Reference
Inheritance diagram for ATContentTypes.tests.test_modulealiases.TestModuleAliases:
Inheritance graph
[legend]
Collaboration diagram for ATContentTypes.tests.test_modulealiases.TestModuleAliases:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_import_content_type
def test_import_criteria
def test_import_z3_interfaces

Detailed Description

Definition at line 33 of file test_modulealiases.py.


Member Function Documentation

Definition at line 35 of file test_modulealiases.py.

00035 
00036     def test_import_content_type(self):
00037         from Products.ATContentTypes.types.ATDocument import ATDocument
00038         from Products.ATContentTypes.types.ATEvent import ATEvent
00039         from Products.ATContentTypes.types.ATFavorite import ATFavorite
00040         from Products.ATContentTypes.types.ATFile import ATFile
00041         from Products.ATContentTypes.types.ATFolder import ATFolder
00042         from Products.ATContentTypes.types.ATFolder import ATBTreeFolder
00043         from Products.ATContentTypes.types.ATImage import ATImage
00044         from Products.ATContentTypes.types.ATLink import ATLink
00045         from Products.ATContentTypes.types.ATNewsItem import ATNewsItem
00046         from Products.ATContentTypes.types.ATTopic import ATTopic
00047 
00048         self.failUnlessEqual(ATDocument.__module__,
00049             'Products.ATContentTypes.content.document')
00050         self.failUnlessEqual(ATEvent.__module__,
00051             'Products.ATContentTypes.content.event')
00052         self.failUnlessEqual(ATFavorite.__module__,
00053             'Products.ATContentTypes.content.favorite')
00054         self.failUnlessEqual(ATFile.__module__,
00055             'Products.ATContentTypes.content.file')
00056         self.failUnlessEqual(ATFolder.__module__,
00057             'Products.ATContentTypes.content.folder')
00058         self.failUnlessEqual(ATBTreeFolder.__module__,
00059             'Products.ATContentTypes.content.folder')
00060         self.failUnlessEqual(ATImage.__module__,
00061             'Products.ATContentTypes.content.image')
00062         self.failUnlessEqual(ATLink.__module__,
00063             'Products.ATContentTypes.content.link')
00064         self.failUnlessEqual(ATNewsItem.__module__,
00065             'Products.ATContentTypes.content.newsitem')
00066         self.failUnlessEqual(ATTopic.__module__,
00067             'Products.ATContentTypes.content.topic')

Definition at line 68 of file test_modulealiases.py.

00068 
00069     def test_import_criteria(self):
00070         from Products.ATContentTypes.criteria.boolean import \
00071             ATBooleanCriterion
00072         from Products.ATContentTypes.criteria.date import \
00073             ATDateCriteria
00074         from Products.ATContentTypes.criteria.daterange import \
00075             ATDateRangeCriterion
00076         from Products.ATContentTypes.criteria.list import \
00077             ATListCriterion
00078         from Products.ATContentTypes.criteria.portaltype import \
00079             ATPortalTypeCriterion
00080         from Products.ATContentTypes.criteria.reference import \
00081             ATReferenceCriterion
00082         from Products.ATContentTypes.criteria.selection import \
00083             ATSelectionCriterion
00084         from Products.ATContentTypes.criteria.simpleint import \
00085             ATSimpleIntCriterion
00086         from Products.ATContentTypes.criteria.simplestring import \
00087             ATSimpleStringCriterion
00088         from Products.ATContentTypes.criteria.sort import \
00089             ATSortCriterion
00090 
00091         self.failUnlessEqual(ATBooleanCriterion.__module__,
00092             'Products.ATContentTypes.criteria.boolean')
00093         self.failUnlessEqual(ATDateCriteria.__module__,
00094             'Products.ATContentTypes.criteria.date')
00095         self.failUnlessEqual(ATDateRangeCriterion.__module__,
00096             'Products.ATContentTypes.criteria.daterange')
00097         self.failUnlessEqual(ATListCriterion.__module__,
00098             'Products.ATContentTypes.criteria.list')
00099         self.failUnlessEqual(ATPortalTypeCriterion.__module__,
00100             'Products.ATContentTypes.criteria.portaltype')
00101         self.failUnlessEqual(ATReferenceCriterion.__module__,
00102             'Products.ATContentTypes.criteria.reference')
00103         self.failUnlessEqual(ATSelectionCriterion.__module__,
00104             'Products.ATContentTypes.criteria.selection')
00105         self.failUnlessEqual(ATSimpleIntCriterion.__module__,
00106             'Products.ATContentTypes.criteria.simpleint')
00107         self.failUnlessEqual(ATSimpleStringCriterion.__module__,
00108             'Products.ATContentTypes.criteria.simplestring')
00109         self.failUnlessEqual(ATSortCriterion.__module__,
00110             'Products.ATContentTypes.criteria.sort')

Definition at line 111 of file test_modulealiases.py.

00111 
00112     def test_import_z3_interfaces(self):
00113         # People import things in different ways, let's make sure they all
00114         # work (doing so actually requires more than just an alias
00115         from Products.ATContentTypes.z3.interfaces import ITextContent
00116         from Products.ATContentTypes.z3 import interfaces
00117         from Products.ATContentTypes import z3
00118 
00119         self.failUnlessEqual(ITextContent.__module__,
00120             'Products.ATContentTypes.interface.interfaces')
00121         self.failUnlessEqual(interfaces.ITextContent.__module__,
00122             'Products.ATContentTypes.interface.interfaces')
00123         self.failUnlessEqual(z3.interfaces.ITextContent.__module__,
00124             'Products.ATContentTypes.interface.interfaces')
00125 
00126 
00127 tests.append(TestModuleAliases)


The documentation for this class was generated from the following file: