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