diff options
author | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-24 17:06:52 (GMT) |
---|---|---|
committer | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-24 17:06:52 (GMT) |
commit | 9868e4ebaf26671fa4707c082aecc4bf4d3d28aa (patch) | |
tree | 300042630099f37944e082e2af1f15b2245b9aaa | |
parent | 97a0c1c741d04896d26580116c0f9238e6fc6722 (diff) |
Refactor on poll result file assertion
-rw-r--r-- | webapp/polls/tests/poll_tests.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/webapp/polls/tests/poll_tests.py b/webapp/polls/tests/poll_tests.py index f5cd0c5..19c36c1 100644 --- a/webapp/polls/tests/poll_tests.py +++ b/webapp/polls/tests/poll_tests.py @@ -4,7 +4,6 @@ import warnings import tempfile from bson import ObjectId import os -import unittest from polls.models import Poll, Field, Structure from polls.views import clean_data, is_image_file @@ -441,7 +440,6 @@ class PollResultFilesTest(MongoTestCase): poll = self.poll self.assertListEqual([], poll.get_result_files()) - @unittest.skip("deprecated assertion") def test_it_should_return_one_result_file(self): poll = self.poll @@ -458,7 +456,7 @@ class PollResultFilesTest(MongoTestCase): poll.add_result_files([(uploaded_file_path, name)]) results_files = poll.get_result_files() self.assertEqual(1, len(results_files)) - self.assertTrue(hasattr(results_files[0], 'get_numero_escuela')) + self.assertTrue(hasattr(results_files[0], 'get_file_name')) class AddResultFilesTest(MongoTestCase): |