Skip to content
Snippets Groups Projects
Commit 043cac26 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

2.17.15

parent d5a024eb
No related branches found
Tags v2.17.15
No related merge requests found
__version__ = '2.17.15a1' __version__ = '2.17.15'
...@@ -6,6 +6,17 @@ from satella.exceptions import BaseSatellaError, CustomException, CodedCustomExc ...@@ -6,6 +6,17 @@ from satella.exceptions import BaseSatellaError, CustomException, CodedCustomExc
class TestExceptions(unittest.TestCase): class TestExceptions(unittest.TestCase):
def test_advanced_class_hierarchy(self):
class A(CodedCustomException):
code = None # type: int
message = '' # type: str
class B(A):
code = 2
message = 'not readed error'
b = B()
def test_coded_custom_exception_no_args(self): def test_coded_custom_exception_no_args(self):
CodedCustomException() CodedCustomException()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment