Skip to content

Commit

Permalink
changed the people/tests.py to resolve()'d urls, made tests run.
Browse files Browse the repository at this point in the history
  • Loading branch information
feuervogel authored and Nathan Borror committed Jul 14, 2010
1 parent 13aa9ce commit c2665e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions basic/people/tests.py
@@ -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.