vendor/Five/1.2b-r20590

view testing/testrunner-ex/sample2/do-not-enter/sampletests.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) 2003 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.0 (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 ##############################################################################
15 import unittest
16 from Products.Five.testing import doctest
18 def f():
19 g()
21 def g():
22 x = 1
23 x = x + 1
24 x = y + 1
25 x = x + 1
28 def eek(self):
29 """
30 >>> f()
31 1
32 """
34 class Test(unittest.TestCase):
36 def test1(self):
37 pass
39 def test2(self):
40 pass
42 def test3(self):
43 f()
45 def test4(self):
46 pass
48 def test5(self):
49 pass
51 def test_suite():
52 suite = unittest.TestSuite()
53 suite.addTest(doctest.DocTestSuite())
54 suite.addTest(unittest.makeSuite(Test))
55 suite.addTest(doctest.DocFileSuite('e.txt'))
56 return suite