Package platecom :: Package langview :: Package tests :: Module test_skins
[hide private]
[frames] | no frames]

Source Code for Module icsemantic.langfallback.tests.test_skins

 1  import unittest 
 2   
 3  from zope.testing import doctestunit 
 4  from zope.component import testing 
 5  from Testing import ZopeTestCase as ztc 
 6  from Products.PloneTestCase import PloneTestCase as ptc 
 7   
 8  from Products.Five import zcml 
 9  from Products.Five import fiveconfigure 
10  from Products.PloneTestCase.layer import PloneSite 
11   
12  from platecom.langview.config import * 
13  import base 
14   
15 -class TestSkins(base.icSemanticTestCase):
16 """ 17 """ 18
19 - def testRegistered(self):
20 """ 21 >>> portal = self.portal 22 >>> skinstool = portal.portal_skins 23 >>> skinstool 24 <SkinsTool at /plone/portal_skins> 25 >>> 'icsemantic.langfallback' in skinstool.getSkinPath('Plone Default') 26 True 27 28 """
29
30 - def testLayersOrder(self):
31 """ 32 >>> portal = self.portal 33 >>> skinstool = portal.portal_skins 34 >>> path = skinstool.getSkinPath('Plone Default') 35 >>> 'icsemantic.langfallback' in path 36 True 37 >>> 'LinguaPlone' in path 38 True 39 >>> path.index('icsemantic.langfallback') < path.index('LinguaPlone') 40 True 41 42 """
43
44 -def test_suite():
45 return unittest.TestSuite([ 46 47 # Unit tests 48 ztc.ZopeDocTestSuite( 49 test_class=TestSkins), 50 51 # Integration tests that use PloneTestCase 52 ztc.FunctionalDocFileSuite( 53 'test_skins.txt', package=PACKAGENAME + '.tests', 54 test_class=base.icSemanticFunctionalTestCase), 55 56 ])
57 58 if __name__ == '__main__': 59 unittest.main(defaultTest='test_suite') 60