summaryrefslogtreecommitdiff
path: root/ick2/persistent_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-10-18 10:49:25 +0300
committerLars Wirzenius <liw@liw.fi>2019-10-18 10:49:25 +0300
commit67de4c99b46c5f77950393a0f5b88a400949c331 (patch)
tree0fcaa29580cc4cdbb69950e5a184a59360f7f7d4 /ick2/persistent_tests.py
parent5822e79a9355970a1190194e351a4761e9db6859 (diff)
downloadick2-67de4c99b46c5f77950393a0f5b88a400949c331.tar.gz
Revert "Drop: use of old persistent state classes"
This reverts commit 8344a860d226d8a5172bcb2e9de5946717a950ca.
Diffstat (limited to 'ick2/persistent_tests.py')
-rw-r--r--ick2/persistent_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ick2/persistent_tests.py b/ick2/persistent_tests.py
index 961742f..18b5c5c 100644
--- a/ick2/persistent_tests.py
+++ b/ick2/persistent_tests.py
@@ -90,3 +90,12 @@ class PersistentStateTestsMixIn:
self.state.write_resource(token, 'silly', '#1', r)
with self.assertRaises(ick2.NotFound):
self.state.remove_resource(token, 'silly', '#2')
+
+
+class MemoryPersistentStateTests(unittest.TestCase, PersistentStateTestsMixIn):
+
+ def get_token(self):
+ return 'DUMMY-TOKEN'
+
+ def setUp(self):
+ self.state = ick2.MemoryPersistentState()