Completed
Push — master ( d6f19a...70f8b2 )
by Koen
01:57
created

TestException   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 10
Duplicated Lines 0 %
Metric Value
dl 0
loc 10
rs 10
wmc 3
1
# -*- coding: utf-8 -*-
2
3
import pytest
4
5
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