Total Complexity | 3 |
Total Lines | 10 |
Duplicated Lines | 0 % |
1 | # -*- coding: utf-8 -*- |
||
6 | class TestException: |
||
7 | |||
8 | def test_inheritance(self): |
||
9 | from crabpy.gateway.exception import GatewayRuntimeException |
||
10 | e = GatewayRuntimeException( |
||
11 | 'Something went wrong.', |
||
12 | 'soapfault' |
||
13 | ) |
||
14 | assert e.soapfault == 'soapfault' |
||
15 | assert e.message =='Something went wrong.' |
||
16 |