source: publico/ILSAAL/trunk/tests/testSAAL1.py @ 1194

Última Alteração nesse arquivo desde 1194 foi 1194, incluída por jeanferri, 14 anos atrás

Inseridos os portlets do SAAL que substituirão as funções do Plone somente dentro da base do SAAL

File size: 2.8 KB
Linha 
1# File: testSAAL1.py
2#
3# Copyright (c) 2005 by Interlegis
4# Generator: ArchGenXML Version 1.4.0-RC1 devel
5#            http://plone.org/products/archgenxml
6#
7# GNU General Public Licence (GPL)
8#
9# This program is free software; you can redistribute it and/or modify it under
10# the terms of the GNU General Public License as published by the Free Software
11# Foundation; either version 2 of the License, or (at your option) any later
12# version.
13# This program is distributed in the hope that it will be useful, but WITHOUT
14# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
16# details.
17# You should have received a copy of the GNU General Public License along with
18# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19# Place, Suite 330, Boston, MA  02111-1307  USA
20#
21__author__  = '''STC Interlegis <stc@interlegis.gov.br>'''
22__docformat__ = 'plaintext'
23
24import os, sys
25if __name__ == '__main__':
26    execfile(os.path.join(sys.path[0], 'framework.py'))
27
28##code-section module-header #fill in your manual code here
29##/code-section module-header
30
31#
32# test-cases for class(es) SAAL
33#
34import os, sys
35from Testing import ZopeTestCase
36from Products.ILSAAL.tests.SAALTestCase import SAALTestCase
37# import the tested classes
38from Products.ILSAAL.SAAL import SAAL
39
40##code-section module-beforeclass #fill in your manual code here
41##/code-section module-beforeclass
42
43
44class testSAAL1(SAALTestCase):
45    """ test-cases for class(es) SAAL
46    """
47
48    ##code-section class-header_testSAAL1 #fill in your manual code here
49    ##/code-section class-header_testSAAL1
50
51    def afterSetUp(self):
52        """
53        """
54        pass
55
56
57    # from class SAAL:
58    def test___init__(self):
59        """
60        """
61        #Uncomment one of the following lines as needed
62        ##self.loginAsPortalOwner()
63        ##o=SAAL('temp_SAAL')
64        ##self.folder._setObject('temp_SAAL', o)
65        pass
66
67
68    # from class SAAL:
69    def test_saal_portlet(self):
70        """
71        """
72        #Uncomment one of the following lines as needed
73        ##self.loginAsPortalOwner()
74        ##o=SAAL('temp_SAAL')
75        ##self.folder._setObject('temp_SAAL', o)
76        pass
77
78
79    # Manually created methods
80    def test_saal_menu(self):
81        """
82        """
83        #Uncomment one of the following lines as needed
84        ##self.loginAsPortalOwner()
85        ##o=SAAL('temp_SAAL')
86        ##self.folder._setObject('temp_SAAL', o)
87        pass
88
89
90def test_suite():
91    from unittest import TestSuite, makeSuite
92    suite = TestSuite()
93    suite.addTest(makeSuite(testSAAL1))
94    return suite
95
96##code-section module-footer #fill in your manual code here
97##/code-section module-footer
98
99
100if __name__ == '__main__':
101    framework()
102
103
Note: Veja TracBrowser para ajuda no uso do navegador do trac.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.