Skip to content

Commit 5336cd4

Browse files
committed
fixed tests for plone4.1 compatibility
1 parent 1a00bdf commit 5336cd4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

quintagroup/seoptimizer/tests/testBugs.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,14 @@ def test_tab_access(self):
265265
test_url = self.portal_url + '/front-page/@@seo-context-properties'
266266
# Anonymous: can NOT ACCESS
267267
headers = self.publish(path=test_url).headers
268-
self.assertEqual(headers.get('bobo-exception-type', ""),
269-
'Unauthorized', "No 'Unauthorized' exception rised " \
270-
"for Anonymous on '@@seo-context-properties' view")
268+
self.assert_('Unauthorized' in headers.get('bobo-exception-type', ""),
269+
"No 'Unauthorized' exception rised for Anonymous on " \
270+
"'@@seo-context-properties' view")
271271
# Member: can NOT ACCESS
272272
self.publish(path=test_url, basic=self.member_auth).headers
273-
self.assertEqual(headers.get('bobo-exception-type', ""),
274-
'Unauthorized', "No 'Unauthorized' exception rised " \
275-
"for Member on '@@seo-context-properties' view")
273+
self.assert_('Unauthorized' in headers.get('bobo-exception-type', ""),
274+
"No 'Unauthorized' exception rised for Member on " \
275+
"'@@seo-context-properties' view")
276276
# Editor: CAN Access
277277
res = self.publish(path=test_url, basic=self.editor_auth)
278278
self.assertEqual(res.status, 200)

0 commit comments

Comments
 (0)