Commit 205c8f02 authored by Jérome Perrin's avatar Jérome Perrin

test allowed content types are correctly set for preference tool



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8462 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2519b1a
......@@ -93,8 +93,16 @@ class TestPreferences(ERP5TypeTestCase):
self.assertEquals(person2.getPreferenceState(), 'disabled')
self.assertEquals(group.getPreferenceState(), 'disabled')
self.assertEquals(site.getPreferenceState(), 'disabled')
def test_AllowedContentTypes(self, quiet=quiet, run=run_all_tests):
"""Tests Preference can be added in Preference Tool.
"""
if not run: return
if not quiet:
ZopeTestCase._print('\n Test allowed content types')
self.failUnless('Preference' in [x.getId() for x in
self.getPortal().portal_preferences.allowedContentTypes()])
def test_EnablePreferences(self, quiet=quiet, run=run_all_tests) :
""" tests preference workflow """
if not run: return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment