source: products/quintagroup.sectionstyle/trunk/quintagroup/sectionstyle/tests/test_sectionurl.py @ 1591

Last change on this file since 1591 was 618, checked in by gerrykirk, 18 years ago

initial French translation

  • Property svn:eol-style set to native
File size: 616 bytes
Line 
1from quintagroup.sectionstyle.tests.base import TestCase
2
3
4class TestSectionScript(TestCase):
5
6    def afterSetUp(self):
7        self.setRoles(('Manager', ))
8
9    def test_getSectionFromURL(self):
10        script = self.portal.getSectionFromURL
11        self.assertEquals('', script())
12        # now add property 'body_class' to portal
13        self.portal.manage_addProperty('body_class', 'extraClass', 'string')
14        self.assertEquals('extraClass', script())
15
16
17def test_suite():
18    from unittest import TestSuite, makeSuite
19    suite = TestSuite()
20    suite.addTest(makeSuite(TestSectionScript))
21    return suite
Note: See TracBrowser for help on using the repository browser.