Skip to content

Commit

Permalink
fixed a few tests
Browse files Browse the repository at this point in the history
  • Loading branch information
topiaruss committed Nov 12, 2013
1 parent d4c62ea commit 59c5cda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion polls/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.db import models
from django.utils import timezone
import datetime

class Poll(models.Model):
question = models.CharField(max_length=200)
Expand All @@ -18,4 +19,4 @@ class Choice(models.Model):
votes = models.IntegerField(default=0)

def __unicode__(self):
return self.choice_text
return self.choice_text
9 changes: 4 additions & 5 deletions polls/tests.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import datetime

from django.utils import timezone
from django.core.urlresolvers import reverse
from django.test import TestCase

from django.utils import timezone
from polls.models import Poll
import datetime

def create_poll(question, days):
"""
Expand Down Expand Up @@ -94,4 +93,4 @@ def test_index_view_with_two_past_polls(self):
self.assertQuerysetEqual(
response.context['latest_poll_list'],
['<Poll: Past poll 2.>', '<Poll: Past poll 1.>']
)
)

0 comments on commit 59c5cda

Please sign in to comment.