diff options
author | Code Raguet <ignacio.code@gmail.com> | 2013-09-17 20:18:29 (GMT) |
---|---|---|
committer | Code Raguet <ignacio.code@gmail.com> | 2013-09-17 20:18:29 (GMT) |
commit | aa7e66ea8312a4103073eb188d2e3dcb15d3f540 (patch) | |
tree | 76bd5df5257980dacde4f8d359c860c4beea0b85 /webapp | |
parent | e55a20e1474245ca9b7f923dbc9dda267b239dd6 (diff) |
tearDown to remove option images
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/polls/tests/structure_tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/polls/tests/structure_tests.py b/webapp/polls/tests/structure_tests.py index abb7bd8..f11da61 100644 --- a/webapp/polls/tests/structure_tests.py +++ b/webapp/polls/tests/structure_tests.py @@ -4,7 +4,8 @@ import os from polls.models import Poll, Group, Field, Structure from mock import Mock -from utils.test import MongoTestCase, mock_in_memory_image +from utils.test import (MongoTestCase, mock_in_memory_image, + remove_option_images_dir) from polls.tests.poll_tests import MockImageFileInterface @@ -361,3 +362,6 @@ class UploadOptionImagesTest(MongoTestCase): images_dir = structure.get_image_options_path() saved_on_disk = os.path.exists(os.path.join(images_dir, img_filename)) self.assertTrue(saved_on_disk) + + def tearDown(self): + remove_option_images_dir() |