1
##############################################################################
3
# Copyright (c) 2003 Zope Foundation and Contributors.
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.
13
##############################################################################
14
"""Sample tests with a layer that can't be torn down
24
setUp = classmethod(setUp)
27
raise NotImplementedError
28
tearDown = classmethod(tearDown)
30
class TestSomething(unittest.TestCase):
34
def test_something(self):
35
import pdb; pdb.set_trace()
37
def test_something2(self):
38
import pdb; pdb.set_trace()
40
def test_something3(self):
41
import pdb; pdb.set_trace()
43
def test_something4(self):
44
import pdb; pdb.set_trace()
46
def test_something5(self):
50
import pdb; pdb.set_trace()
56
... import pdb; pdb.set_trace()
59
def test_set_trace2():
66
suite = unittest.TestSuite()
67
suite.addTest(unittest.makeSuite(TestSomething))
68
d = doctest.DocTestSuite()
74
if __name__ == '__main__':