-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreated_unittest_file.py
More file actions
57 lines (40 loc) · 1.48 KB
/
created_unittest_file.py
File metadata and controls
57 lines (40 loc) · 1.48 KB
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
"""Unittest for the file test_source_file.py."""
import unittest
class TestGlobalMethods(unittest.TestCase):
"""Test case for all global methods."""
def test_my_global_method_01(self):
"""Test the method my_global_method_01(param1: str, param2: int, param3) -> list[bool]"""
self.fail()
def test_my_global_method_02(self):
"""Test the method my_global_method_02()"""
self.fail()
class TestMyClass(unittest.TestCase):
"""Test case for all methods of the class MyClass."""
def setUp(self) -> None:
pass
def tearDown(self) -> None:
pass
def test_init(self):
"""Test the method __init__(self)"""
self.fail()
def test_my_class_method_01(self):
"""Test the method my_class_method_01(self, param1: str, param2: int, param3) -> list[bool]"""
self.fail()
def test_my_class_method_02(self):
"""Test the method my_class_method_02(self)"""
self.fail()
def test_my_private_method(self):
"""Test the method _my_private_method(self)"""
self.fail()
class TestMyClassWithInh(unittest.TestCase):
"""Test case for all methods of the class MyClassWithInh(MyClass)."""
def setUp(self) -> None:
pass
def tearDown(self) -> None:
pass
def test_init(self):
"""Test the method __init__(self)"""
self.fail()
def test_my_class_method_02(self):
"""Test the method my_class_method_02(self)"""
self.fail()