web/test/unittest_webconfig.py
changeset 5907 5eba1248e12b
parent 5444 f7fdb5dd82f6
child 7791 31bb51ea5485
equal deleted inserted replaced
5905:ed66f5a8d48a 5907:5eba1248e12b
    39         self.failUnless(isinstance(ie_css, list))
    39         self.failUnless(isinstance(ie_css, list))
    40 
    40 
    41     def test_locate_resource(self):
    41     def test_locate_resource(self):
    42         self.failUnless('FILE_ICON' in self.config.uiprops)
    42         self.failUnless('FILE_ICON' in self.config.uiprops)
    43         rname = self.config.uiprops['FILE_ICON'].replace(self.config.datadir_url, '')
    43         rname = self.config.uiprops['FILE_ICON'].replace(self.config.datadir_url, '')
    44         self.failUnless('file' in self.config.locate_resource(rname).split(os.sep))
    44         self.failUnless('file' in self.config.locate_resource(rname)[0].split(os.sep))
    45         cubicwebcsspath = self.config.locate_resource('cubicweb.css').split(os.sep)
    45         cubicwebcsspath = self.config.locate_resource('cubicweb.css')[0].split(os.sep)
    46         self.failUnless('web' in cubicwebcsspath or 'shared' in cubicwebcsspath) # 'shared' if tests under apycot
    46         self.failUnless('web' in cubicwebcsspath or 'shared' in cubicwebcsspath) # 'shared' if tests under apycot
    47 
    47 
    48 if __name__ == '__main__':
    48 if __name__ == '__main__':
    49     unittest_main()
    49     unittest_main()
    50 
    50