1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
import unittest
import warnings
warnings.filterwarnings('ignore', category=DeprecationWarning,
module='test')
def test_string_exc():
raise "string exception"
class TestStringExceptionInSetup(unittest.TestCase):
def setUp(self):
raise "string exception in setup"
def testNothing(self):
pass
class TestStringExceptionInTeardown(unittest.TestCase):
def tearDown(self):
raise "string exception in teardown"
def testNothing(self):
pass
class TestStringExceptionInClass(unittest.TestCase):
def testStringExc(self):
raise "string exception in test"
|