WeTest.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 2
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
crap 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