-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_source_file.py
More file actions
38 lines (26 loc) · 939 Bytes
/
test_source_file.py
File metadata and controls
38 lines (26 loc) · 939 Bytes
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
"""A test source file for the unittest template generator."""
def my_global_method_01(param1: str, param2: int, param3) -> list[bool]:
"""Global method with parameters."""
return []
class MyClass:
"""Class without inheritance."""
def __init__(self):
self.name = "MyClass"
def my_class_method_01(self, param1: str, param2: int, param3) -> list[bool]:
"""Class method with parameters."""
return []
def my_class_method_02(self):
"""Class method without parameters."""
return
def _my_private_method(self):
return
class MyClassWithInh(MyClass):
"""Class with inheritance."""
def __init__(self):
super().__init__()
def my_class_method_02(self):
"""Class method without parameters."""
return
def my_global_method_02():
"""Global method without parameters. Intentionally put at a weird space in the file."""
return