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