def test_forget(self): with pytest.raises(NotImplementedError): KeyValueStoreBackend(self.app).forget('a')
def test_cleanup(self): assert not KeyValueStoreBackend(self.app).cleanup()
def test_delete(self): with pytest.raises(NotImplementedError): KeyValueStoreBackend(self.app).delete('a')
def test_mget(self): with self.assertRaises(NotImplementedError): KeyValueStoreBackend(self.app).mget(['a'])
def test_incr(self): with pytest.raises(NotImplementedError): KeyValueStoreBackend(self.app).incr('a')
def test_set(self): with self.assertRaises(NotImplementedError): KeyValueStoreBackend(self.app).set('a', 1)
def test_cleanup(self): self.assertFalse(KeyValueStoreBackend(self.app).cleanup())
def test_forget(self): with self.assertRaises(NotImplementedError): KeyValueStoreBackend().forget('a')
def test_set(self): with pytest.raises(NotImplementedError): KeyValueStoreBackend(self.app)._set_with_state( 'a', 1, states.SUCCESS)
def test_delete(self): with self.assertRaises(NotImplementedError): KeyValueStoreBackend().delete('a')
def test_incr(self): with self.assertRaises(NotImplementedError): KeyValueStoreBackend().incr('a')
def test_forget(self): self.assertRaises(NotImplementedError, KeyValueStoreBackend().forget, "a")
def test_delete(self): self.assertRaises(NotImplementedError, KeyValueStoreBackend().delete, "a")
def test_mget(self): self.assertRaises(NotImplementedError, KeyValueStoreBackend().mget, ["a"])