Changeset 3213 in products


Ignore:
Timestamp:
May 5, 2011 10:24:13 AM (10 years ago)
Author:
vmaksymiv
Message:

fixed tests for plone4.1 compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/tests/testBugs.py

    r3143 r3213  
    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) 
Note: See TracChangeset for help on using the changeset viewer.