Completed
Push — master ( e6b198...e30f90 )
by Messense
11:09 queued 10:06
created

SessionStorage.__setitem__()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.125
Metric Value
cc 1
dl 0
loc 2
ccs 1
cts 2
cp 0.5
crap 1.125
rs 10
1
# -*- coding: utf-8 -*-
2 10
from __future__ import absolute_import, unicode_literals
3
4
5 10
class SessionStorage(object):
6
7 10
    def get(self, key, default=None):
8
        raise NotImplementedError()
9
10 10
    def set(self, key, value, ttl=None):
11
        raise NotImplementedError()
12
13 10
    def delete(self, key):
14
        raise NotImplementedError()
15
16 10
    def __getitem__(self, key):
17
        self.get(key)
18
19 10
    def __setitem__(self, key, value):
20
        self.set(key, value)
21
22 10
    def __delitem__(self, key):
23
        self.delete(key)
24