forked from nathanborror/django-basic-apps
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed the people/tests.py to resolve()'d urls, made tests run.
- Loading branch information
1 parent
13aa9ce
commit c2665e6
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
""" |