Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
ATContentTypes.tests.test_bugs.TestBugs Class Reference
Inheritance diagram for ATContentTypes.tests.test_bugs.TestBugs:
Inheritance graph
[legend]
Collaboration diagram for ATContentTypes.tests.test_bugs.TestBugs:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def test_wfmapping
def test_striphtmlbug
def test_validation_layer_from_id_field_from_base_schema_was_initialized

Public Attributes

 wf

Detailed Description

Definition at line 34 of file test_bugs.py.


Member Function Documentation

Definition at line 36 of file test_bugs.py.

00036 
00037     def afterSetUp(self):
00038         atcttestcase.ATCTSiteTestCase.afterSetUp(self)
00039         self.wf = self.portal.portal_workflow

Definition at line 61 of file test_bugs.py.

00061 
00062     def test_striphtmlbug(self):
00063         # Test for Plone tracker #4944
00064         self.folder.invokeFactory('Document', 'document')
00065         d = getattr(self.folder, 'document')
00066         d.setTitle("HTML end tags start with </ and end with >")
00067         self.assertEqual(d.Title(), "HTML end tags start with </ and end with >")

Here is the call graph for this function:

Definition at line 68 of file test_bugs.py.

00068 
00069     def test_validation_layer_from_id_field_from_base_schema_was_initialized(self):
00070         field = ATContentTypeSchema['id']
00071         self.failUnless(IValidationChain.isImplementedBy(field.validators))
00072 
00073 
00074 tests.append(TestBugs)

Definition at line 40 of file test_bugs.py.

00040 
00041     def test_wfmapping(self):
00042         default = ('plone_workflow',)
00043         folder = ('folder_workflow',)
00044 
00045         mapping = {
00046             'Document' : default,
00047             'Event' : default,
00048             'Favorite' : default,
00049             'File' : (),
00050             'Folder' : folder,
00051             'Large Plone Folder' : folder,
00052             'Image' : (),
00053             'Link' : default,
00054             'News Item' : default,
00055             'Topic' : folder,
00056             }
00057 
00058         for pt, wf in mapping.items():
00059             pwf = self.wf.getChainFor(pt)
00060             self.failUnlessEqual(pwf, wf, (pt, pwf, wf))


Member Data Documentation

Definition at line 38 of file test_bugs.py.


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