Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
Ok. I get you. Thanks very much! On Saturday, 21 February 2015 11:56:50 UTC, Daniel Roseman wrote: > > You're doing this in the shell, which uses your devv database in which you > have obviously defined a poll already. > > The docs are taking about running this in a unit test, which would create

Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
I got a code 200. Thanks for your reply. On Saturday, 21 February 2015 11:05:35 UTC, 严超 wrote: > > I think the purpose here is to test reverse() function. As long as you > got code 200, it's ok whatever html it returns. > Is it right ? > > *Best Regards!* > > > *Chao Yan--About me : h

Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread 严超
I think the purpose here is to test reverse() function. As long as you got code 200, it's ok whatever html it returns. Is it right ? *Best Regards!* *Chao Yan--About me : http://about.me/chao_yan * *My twitter: @yanchao727 *