class TestPersistentMemory(unittest.TestCase): """Tests Transformers""" def setUp(self): from pydsl.Memory.Shelve import ShelveStorage from pydsl.Checker import Checker self.mem = ShelveStorage("tmp", Checker) @unittest.skip def testSaveLoadAndDelete(self): from pydsl.Checker import DummyChecker dg = DummyChecker() if "DummyChecker" in self.mem: del self.mem["DummyChecker"] self.mem.save(dg, "DummyChecker") newdg = self.mem["DummyChecker"] self.assertEqual(newdg,dg) del self.mem["DummyChecker"]
def setUp(self): from pydsl.Memory.Shelve import ShelveStorage from pydsl.Checker import Checker self.mem = ShelveStorage("tmp", Checker)