Malcolm thanks for the feedback and your right, I agree with you that the client should not know about the user. Vitaly Babiy
2009/1/26 Malcolm Tredinnick <[email protected]> > > On Sat, 2009-01-24 at 12:14 -0500, Vitaly Babiy wrote: > > Yes either way would work I was just wondering if there was a more > > cleaner way of doing so. > > Then you're going to have to define what "cleaner" means from your > persepctive. What could be cleaner that simply get()-ing the right model > based on the unique piece of identifying information (the username)? > It's one line of code. > > The browser-emulating side (self.client) doesn't and shouldn't care > about that, since it's the browser-side of the test, not the > server-side. > > Regards, > Malcolm > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

