File: test.py

package info (click to toggle)
nose 1.3.7-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,900 kB
  • sloc: python: 15,733; makefile: 99; xml: 42; sh: 2
file content (30 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (6)
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"