Esempio n. 1
0
 def test_file_storage(self):
     from django_zodb.storage import get_storage_from_uri
     storage = get_storage_from_uri("file:///tmp/test.db?database_name=file")
     self.assertEquals(storage.__class__.__name__, "FileStorage")
     self.assertRaises(TypeError, lambda: storage.fshelper.temp_dir)
     storage.close()
     remove_db_files()
Esempio n. 2
0
 def tearDown(self):
     remove_db_files()
Esempio n. 3
0
 def setUp(self):
     remove_db_files()