Exemple #1
0
 def test_clear_no_persistent_data(self):
     from relstorage.tests.fakecache import data
     data.clear()
     c = self._makeOne()
     data['x'] = '1'
     c.clear()
     self.assertFalse(data)
Exemple #2
0
 def test_clear(self):
     from relstorage.tests.fakecache import data
     data.clear()
     c = self._makeOne()
     data['x'] = '1'
     c.clear()
     self.assert_(not data)
     self.assertEqual(c.checkpoints, None)
     self.assertEqual(c.delta_after0, {})
     self.assertEqual(c.delta_after1, {})
Exemple #3
0
 def setUp(self):
     from relstorage.tests.fakecache import data
     data.clear()
Exemple #4
0
 def setUp(self):
     from relstorage.tests.fakecache import data
     data.clear()
 def tearDown(self):
     from relstorage.tests.fakecache import data
     data.clear()
     for inst in self._instances:
         inst.options.cache_local_dir = None
         inst.close(close_async=False)
 def setUp(self):
     from relstorage.tests.fakecache import data
     data.clear()
     self._instances = []