More housekeeping: remove nose and unused cruft.
[redakcja.git] / src / wiki_img / tests.py
1 import wiki.models as models
2 import shutil
3 import tempfile
4
5
6 class TestStorageBase:
7     def setUp(self):
8         self.dirpath = tempfile.mkdtemp(prefix='redakcja_test_')
9
10     def tearDown(self):
11         shutil.rmtree(self.dirpath)
12
13
14 class TestDocumentStorage(TestStorageBase):
15
16     def test_storage_empty(self):
17         storage = models.DocumentStorage(self.dirpath)
18         self.assertEqual(storage.all(), [])