vendor/Five/1.2b-r20590

view testing/testrunner-ex/sample2/sampletests_ntd.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 ##############################################################################
14 """Sample tests with a layer that can't be torn down
16 $Id: sampletests_ntd.py 18831 2005-10-21 18:07:37Z yuppie $
17 """
19 import unittest
21 class Layer:
23 def setUp(self):
24 pass
25 setUp = classmethod(setUp)
27 def tearDown(self):
28 raise NotImplementedError
29 tearDown = classmethod(tearDown)
31 class TestSomething(unittest.TestCase):
33 layer = Layer
35 def test_something(self):
36 pass
39 def test_suite():
40 suite = unittest.TestSuite()
41 suite.addTest(unittest.makeSuite(TestSomething))
42 return suite
45 if __name__ == '__main__':
46 unittest.main()