web/test/unittest_webconfig.py
changeset 9677 f0130c270793
parent 9674 96549de9dd70
child 10071 4bc099f2a089
equal deleted inserted replaced
9676:3f62606c01a2 9677:f0130c270793
    40     def test_locate_resource(self):
    40     def test_locate_resource(self):
    41         self.assertIn('FILE_ICON', self.config.uiprops)
    41         self.assertIn('FILE_ICON', self.config.uiprops)
    42         rname = self.config.uiprops['FILE_ICON'].replace(self.config.datadir_url, '')
    42         rname = self.config.uiprops['FILE_ICON'].replace(self.config.datadir_url, '')
    43         self.assertIn('file', self.config.locate_resource(rname)[0].split(os.sep))
    43         self.assertIn('file', self.config.locate_resource(rname)[0].split(os.sep))
    44         cubicwebcsspath = self.config.locate_resource('cubicweb.css')[0].split(os.sep)
    44         cubicwebcsspath = self.config.locate_resource('cubicweb.css')[0].split(os.sep)
    45         self.assertIn('web' in cubicwebcsspath or 'shared', cubicwebcsspath) # 'shared' if tests under apycot
    45         self.assertTrue('web' in cubicwebcsspath or 'shared' in cubicwebcsspath) # 'shared' if tests under apycot
    46 
    46 
    47     def test_sign_text(self):
    47     def test_sign_text(self):
    48         signature = self.config.sign_text(u'hôp')
    48         signature = self.config.sign_text(u'hôp')
    49         self.assertTrue(self.config.check_text_sign(u'hôp', signature))
    49         self.assertTrue(self.config.check_text_sign(u'hôp', signature))
    50 
    50