Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/polls/tests/poll_tests.py
diff options
context:
space:
mode:
authorRogelio Mita <rogeliomita@activitycentral.com>2013-04-17 02:32:54 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-04-17 02:32:54 (GMT)
commit6d804429d0531fff6241fa2a7b22d1d18e8c7b7e (patch)
tree77e1ae3f13d550567b38041bc3f1caab225ffb54 /webapp/polls/tests/poll_tests.py
parentcf9c2e3bda0e3ba20eb107db9da655052e89bbf0 (diff)
Refactoring
Diffstat (limited to 'webapp/polls/tests/poll_tests.py')
-rw-r--r--webapp/polls/tests/poll_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/polls/tests/poll_tests.py b/webapp/polls/tests/poll_tests.py
index 2e10416..0d20cf3 100644
--- a/webapp/polls/tests/poll_tests.py
+++ b/webapp/polls/tests/poll_tests.py
@@ -2,7 +2,7 @@
from bson import ObjectId
from polls.models import Poll
-from polls.forms import PollAddForm
+from polls.forms import PollForm
from pollster.models import Pollster
from utils.test import MongoTestCase
@@ -146,7 +146,7 @@ class PollFormTests(MongoTestCase):
name = 'nombre de encuesta'
data = {'name': name, 'status': Poll.OPEN}
- form = PollAddForm(data=data)
+ form = PollForm(data=data)
self.assertTrue(form.is_valid())
@@ -157,6 +157,6 @@ class PollFormTests(MongoTestCase):
self.assertEqual(1, self.db.polls.count())
def test_no_valid_data(self):
- form = PollAddForm()
+ form = PollForm()
self.assertFalse(form.is_valid())