SessionStorage.__getitem__()   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
c 0
b 0
f 0
dl 0
loc 2
ccs 2
cts 2
cp 1
rs 10
cc 1
crap 1
1 15
class SessionStorage(object):
2 15
    def get(self, id):
3
        raise NotImplementedError()
4
5 15
    def set(self, id, value):
6
        raise NotImplementedError()
7
8 15
    def delete(self, id):
9
        raise NotImplementedError()
10
11 15
    def __getitem__(self, id):
12 15
        return self.get(id)
13
14 15
    def __setitem__(self, id, session):
15 15
        self.set(id, session)
16
17 15
    def __delitem__(self, id):
18
        self.delete(id)
19