X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/54e3b77e2346618a6e7cd0fe8beb71e7b54a30e6..caaa4304f09a3d446f0677ac7203ef429170e7e0:/apps/wiki/tests.py?ds=inline

diff --git a/apps/wiki/tests.py b/apps/wiki/tests.py
index e69de29b..65777379 100644
--- a/apps/wiki/tests.py
+++ b/apps/wiki/tests.py
@@ -0,0 +1,19 @@
+from nose.tools import *
+import wiki.models as models
+import shutil
+import tempfile
+
+
+class TestStorageBase:
+    def setUp(self):
+        self.dirpath = tempfile.mkdtemp(prefix='nosetest_')
+
+    def tearDown(self):
+        shutil.rmtree(self.dirpath)
+
+
+class TestDocumentStorage(TestStorageBase):
+
+    def test_storage_empty(self):
+        storage = models.DocumentStorage(self.dirpath)
+        eq_(storage.all(), [])