-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtest_class.py
78 lines (50 loc) · 1.32 KB
/
test_class.py
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- coding: utf-8 -*-
class TestClassPassing(object):
def setup_method(self, method):
pass
def teardown_method(self, method):
pass
def test_passing(self):
assert True
class TestClassFailing(object):
def setup_method(self, method):
pass
def teardown_method(self, method):
pass
def test_failing(self):
assert False
class TestClassError(object):
def setup_method(self, method):
pass
def teardown_method(self, method):
pass
def test_error(self):
1 / 0
class TestClassFailingAndErrorTeardown(object):
def setup_method(self, method):
pass
def teardown_method(self, method):
1 / 0
def test_error(self):
assert False
class TestClassErrorSetup(object):
def setup_method(self, method):
1 / 0
def teardown_method(self, method):
pass
def test_passing(self):
assert True
class TestClassErrorSetupAndTeardown(object):
def setup_method(self, method):
1 / 0
def teardown_method(self, method):
1 / 0
def test_passing(self):
assert True
class TestClassErrorTeardown(object):
def setup_method(self, method):
pass
def teardown_method(self, method):
1 / 0
def test_passing(self):
assert True