def test_expired(self): with raises(NotImplementedError): bs = BaseStorage() bs.expired('some_key')
def test_get_default(self): with raises(NotImplementedError): bs = BaseStorage() bs.get('test')
def test_flush(self): with raises(NotImplementedError): bs = BaseStorage() bs.flush()
def test_create(self): bs = BaseStorage() assert repr(bs) == '<watson.cache.storage.BaseStorage>'
def test_set_params(self): with raises(NotImplementedError): bs = BaseStorage() bs.set('test', 'test', timeout=3600)
def test_flush(self): bs = BaseStorage() bs.flush()
def test_expired(self): bs = BaseStorage() bs.expired('some_key')
def test_delete(self): bs = BaseStorage() del bs['test']
def test_contains(self): bs = BaseStorage() 'test' in bs
def test_get(self): bs = BaseStorage() bs['test']
def test_get_default(self): bs = BaseStorage() bs.get('test')
def test_set_params(self): bs = BaseStorage() bs.set('test', 'test', timeout=3600)