Dirty hack to fix gallery editing on some browsers
[redakcja.git] / apps / wiki / tests.py
1 from nose.tools import *
2 import wiki.models as models
3 import shutil, tempfile
4
5 class TestStorageBase:
6     def setUp(self):
7         self.dirpath = tempfile.mkdtemp(prefix = 'nosetest_')
8
9     def tearDown(self):
10         shutil.rmtree(self.dirpath)
11
12 class TestDocumentStorage(TestStorageBase):
13
14     def test_storage_empty(self):
15         storage = models.DocumentStorage(self.dirpath)
16         eq_(storage.all(), [])
17
18
19
20