Beispiel #1
0
 def test_makes_storage_area(self):
     config = {'MARKWIKI_HOME': tempfile.mkdtemp()}
     storage = FileUserStorage(config)
     self.assertFalse(os.path.exists(storage._path),
                      'User storage does not exist before initialization.')
     storage.initialize()
     self.assertTrue(
         os.path.exists(storage._path),
         'Construction creates the user storage area in the'
         ' MarkWiki home.')
Beispiel #2
0
 def setUp(self):
     self.config = {'MARKWIKI_HOME': tempfile.mkdtemp()}
     self.storage = FileUserStorage(self.config)
     self.storage.initialize()