Skip to content

Commit

Permalink
fixed tested url
Browse files Browse the repository at this point in the history
There is can be any url prefix, using reverse for checking absolute url
  • Loading branch information
GeyseR committed Dec 29, 2013
1 parent 758464c commit 9b924cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schedule/tests/test_event.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import datetime
from django.conf import settings
from django.core.urlresolvers import reverse
from django.test.utils import override_settings
import pytz

Expand Down Expand Up @@ -297,7 +298,7 @@ def test_get_absolute(self):
cal)
event.save()
url = event.get_absolute_url()
self.assertEquals('/event/1/', url)
self.assertEquals(reverse('event', kwargs={'event_id': event.id}), url)

def test_(self):
pass
Expand Down

0 comments on commit 9b924cb

Please sign in to comment.