From 67de4c99b46c5f77950393a0f5b88a400949c331 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 18 Oct 2019 10:49:25 +0300 Subject: Revert "Drop: use of old persistent state classes" This reverts commit 8344a860d226d8a5172bcb2e9de5946717a950ca. --- ick2/persistent_tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ick2/persistent_tests.py') 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() -- cgit v1.2.1