Skip to content

Commit eb781ce

Browse files
committed
unittest tests example
1 parent 257d3b2 commit eb781ce

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Project/tests/test_unittest.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,16 @@ class TestCase1(unittest.TestCase):
1515
"""
1616

1717
def setUp(self):
18-
"""initialize whatever is necessary to run all tests in this class"""
18+
"""
19+
initialize whatever is necessary to run all tests in this class
20+
runs before each test
21+
"""
22+
23+
def tearDown(self):
24+
"""
25+
tidies up after running tests
26+
runs after each test in this class
27+
"""
1928

2029
def test_situation_1(self):
2130
self.assertFalse('function_to_test(args)')

0 commit comments

Comments
 (0)