X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/beb9f10bd04b0085e66fd46b9f412269da9ea668..cbb14d2ed3eb0b72a6c3c68ab93847923e6142f4:/apps/wiki/tests.py?ds=inline diff --git a/apps/wiki/tests.py b/apps/wiki/tests.py index 91eccc8a..65777379 100644 --- a/apps/wiki/tests.py +++ b/apps/wiki/tests.py @@ -1,20 +1,19 @@ from nose.tools import * import wiki.models as models -import shutil, tempfile +import shutil +import tempfile + class TestStorageBase: def setUp(self): - self.dirpath = tempfile.mkdtemp(prefix = 'nosetest_') + 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(), []) - - - -