Re: User.objects.get() doesn't return anything in unit test.

2012-03-12 Thread RM
Putting the correct view in the c.post() method worked. Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsub

Re: User.objects.get() doesn't return anything in unit test.

2012-03-11 Thread Russell Keith-Magee
On 11/03/2012, at 4:30 PM, RM wrote: > When my django test case executes, I'm testing my code's ability to > create a new user. But when I use the User.objects.get() method the > user isn't found. The view being tested actually creates users (I > checked it in the browser), but how do I write a t

User.objects.get() doesn't return anything in unit test.

2012-03-11 Thread RM
When my django test case executes, I'm testing my code's ability to create a new user. But when I use the User.objects.get() method the user isn't found. The view being tested actually creates users (I checked it in the browser), but how do I write a test that verifies it? Thanks for your help! f