Beispiel #1
0
 def test_expired(self):
     with raises(NotImplementedError):
         bs = BaseStorage()
         bs.expired('some_key')
Beispiel #2
0
 def test_get_default(self):
     with raises(NotImplementedError):
         bs = BaseStorage()
         bs.get('test')
Beispiel #3
0
 def test_flush(self):
     with raises(NotImplementedError):
         bs = BaseStorage()
         bs.flush()
Beispiel #4
0
 def test_create(self):
     bs = BaseStorage()
     assert repr(bs) == '<watson.cache.storage.BaseStorage>'
Beispiel #5
0
 def test_set_params(self):
     with raises(NotImplementedError):
         bs = BaseStorage()
         bs.set('test', 'test', timeout=3600)
Beispiel #6
0
 def test_flush(self):
     bs = BaseStorage()
     bs.flush()
Beispiel #7
0
 def test_expired(self):
     bs = BaseStorage()
     bs.expired('some_key')
Beispiel #8
0
 def test_delete(self):
     bs = BaseStorage()
     del bs['test']
Beispiel #9
0
 def test_contains(self):
     bs = BaseStorage()
     'test' in bs
Beispiel #10
0
 def test_get(self):
     bs = BaseStorage()
     bs['test']
Beispiel #11
0
 def test_get_default(self):
     bs = BaseStorage()
     bs.get('test')
Beispiel #12
0
 def test_set_params(self):
     bs = BaseStorage()
     bs.set('test', 'test', timeout=3600)
Beispiel #13
0
 def test_expired(self):
     bs = BaseStorage()
     bs.expired('some_key')
Beispiel #14
0
 def test_flush(self):
     bs = BaseStorage()
     bs.flush()
Beispiel #15
0
 def test_get_default(self):
     bs = BaseStorage()
     bs.get('test')
Beispiel #16
0
 def test_set_params(self):
     bs = BaseStorage()
     bs.set('test', 'test', timeout=3600)