Skip to content

Commit

Permalink
More test fixing for pam plone 5
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodbare committed Mar 25, 2015
1 parent 24a4e5b commit 2560bcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Products/Archetypes/tests/folder_marshall.txt
Expand Up @@ -112,7 +112,7 @@ like a normal resource:
creators: test_user_1_
effectiveDate: None
expirationDate: None
language:
language: en
rights:
creation_date: ...
modification_date: ...
Expand Down Expand Up @@ -190,7 +190,7 @@ like a normal resource:
creators: test_user_1_
effectiveDate: None
expirationDate: None
language:
language: en
rights:
creation_date: ...
modification_date: ...
Expand Down
6 changes: 3 additions & 3 deletions Products/Archetypes/tests/test_default_mimetypes.py
Expand Up @@ -25,15 +25,15 @@ def test_ATDocumentDefaultType(self):
obj = self.portal.testdoc
# its text field should have the site wide default 'text/plain'
textfield = obj.getField('body')
self.assertEqual(textfield.getContentType(obj), 'text/plain')
self.assertEqual(textfield.getContentType(obj), 'text/html')
# and so has the teaser field:
teaserfield = obj.getField('teaser')
self.assertEqual(teaserfield.getContentType(obj), 'text/plain')
self.assertEqual(teaserfield.getContentType(obj), 'text/html')

# then we try to change the sitewide default:
setDefaultContentType(self.portal, "text/x-web-markdown")
# while this raises no error it won't change the default, as we have
# no properties tool nor properties sheet
self.assertEqual(getDefaultContentType(self.portal), 'text/plain')
self.assertEqual(getDefaultContentType(self.portal), 'text/x-web-markdown')
self.portal['portal_properties'] = _orignal_pp
_tool_interface_registry['portal_properties'] = ptool

0 comments on commit 2560bcc

Please sign in to comment.