X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/15dec706694c3afc006713be0fabb4973a6c2946..864d45abe5ec985836baf52de168943d25a03be6:/src/wiki_img/tests.py diff --git a/src/wiki_img/tests.py b/src/wiki_img/tests.py index 65777379..2b342da6 100644 --- a/src/wiki_img/tests.py +++ b/src/wiki_img/tests.py @@ -1,4 +1,3 @@ -from nose.tools import * import wiki.models as models import shutil import tempfile @@ -6,7 +5,7 @@ import tempfile class TestStorageBase: def setUp(self): - self.dirpath = tempfile.mkdtemp(prefix='nosetest_') + self.dirpath = tempfile.mkdtemp(prefix='redakcja_test_') def tearDown(self): shutil.rmtree(self.dirpath) @@ -16,4 +15,4 @@ class TestDocumentStorage(TestStorageBase): def test_storage_empty(self): storage = models.DocumentStorage(self.dirpath) - eq_(storage.all(), []) + self.assertEqual(storage.all(), [])