vendor/Five/1.2b-r20590

view browser/tests/test_resource.py @ 0:3673ed425f80

Vendor import of Five 1.2b+ (r20590)
author fguillaume
date Fri, 02 Dec 2005 20:25:42 +0000
parents
children
line source
1 ##############################################################################
2 #
3 # Copyright (c) 2004, 2005 Zope Corporation and Contributors.
4 # All Rights Reserved.
5 #
6 # This software is subject to the provisions of the Zope Public License,
7 # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
8 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11 # FOR A PARTICULAR PURPOSE.
12 #
13 ##############################################################################
14 """Test browser resources
16 $Id: test_resource.py 17853 2005-09-25 13:34:25Z tseaver $
17 """
18 import os, sys
19 if __name__ == '__main__':
20 execfile(os.path.join(sys.path[0], 'framework.py'))
22 def test_suite():
23 import unittest
24 from Testing.ZopeTestCase import installProduct, ZopeDocFileSuite
25 from Testing.ZopeTestCase import FunctionalDocFileSuite
26 installProduct('PythonScripts') # for Five.tests.testing.restricted
27 return unittest.TestSuite((
28 ZopeDocFileSuite('resource.txt',
29 package='Products.Five.browser.tests'),
30 FunctionalDocFileSuite('resource_ftest.txt',
31 package='Products.Five.browser.tests'),
32 ))
34 if __name__ == '__main__':
35 framework()