@@ -265,14 +265,14 @@ def test_tab_access(self):
265
265
test_url = self .portal_url + '/front-page/@@seo-context-properties'
266
266
# Anonymous: can NOT ACCESS
267
267
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" )
271
271
# Member: can NOT ACCESS
272
272
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" )
276
276
# Editor: CAN Access
277
277
res = self .publish (path = test_url , basic = self .editor_auth )
278
278
self .assertEqual (res .status , 200 )
0 commit comments