Permalink
Browse files

changed the people/tests.py to resolve()'d urls, made tests run.

  • Loading branch information...
feuervogel authored and Nathan Borror committed Jun 28, 2010
1 parent 13aa9ce commit c2665e6f585c299647e0777274243c5b4cf71499
Showing with 3 additions and 2 deletions.
  1. +3 −2 basic/people/tests.py
View
@@ -1,15 +1,16 @@
"""
>>> from django.test import Client
>>> from basic.people.models import Person, Quote, PersonType
+>>> from django.core.urlresolvers import reverse
>>> c = Client()
>>> p = Person.objects.create(first_name='Nathan', last_name='Borror', slug='nathan-borror')
->>> r = c.get('/people/')
+>>> r = c.get(reverse('person_list'))
>>> r.status_code
200
->>> r = c.get('/people/nathan-borror/')
+>>> r = c.get(reverse('person_detail', kwargs={'slug': 'nathan-borror'}))
>>> r.status_code
200
"""

0 comments on commit c2665e6

Please sign in to comment.