WeTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 7
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 2 1
A send_xml() 0 3 1
1 15
from .parser import parse_user_msg
2
3 15
__all__ = ['WeTest']
4
5
6 15
class WeTest(object):
7 15
    def __init__(self, app):
8 15
        self._app = app
9
10 15
    def send_xml(self, xml):
11 15
        message = parse_user_msg(xml)
12
        return self._app.get_reply(message)
13