Skip to content
This repository
Browse code

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

  • Loading branch information...
commit c2665e6f585c299647e0777274243c5b4cf71499 1 parent 13aa9ce
Julian authored June 28, 2010 Nathan Borror committed July 15, 2010

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  basic/people/tests.py
5  basic/people/tests.py
... ...
@@ -1,15 +1,16 @@
1 1
 """
2 2
 >>> from django.test import Client
3 3
 >>> from basic.people.models import Person, Quote, PersonType
  4
+>>> from django.core.urlresolvers import reverse
4 5
 
5 6
 >>> c = Client()
6 7
 >>> p = Person.objects.create(first_name='Nathan', last_name='Borror', slug='nathan-borror')
7 8
 
8  
->>> r = c.get('/people/')
  9
+>>> r = c.get(reverse('person_list'))
9 10
 >>> r.status_code
10 11
 200
11 12
 
12  
->>> r = c.get('/people/nathan-borror/')
  13
+>>> r = c.get(reverse('person_detail', kwargs={'slug': 'nathan-borror'}))
13 14
 >>> r.status_code
14 15
 200
15 16
 """

0 notes on commit c2665e6

Please sign in to comment.
Something went wrong with that request. Please try again.