Re: Changing the language in test client

2009-02-15 Thread peschler
> > You are misunderstanding what the set_language view does. That view sets > up the client's locale cookie so that whenever a view is processed for > that particular web client, it will be done in the locale of "de" (in > your case). Ok. Thanks for making this clear. > > It does not change the

Re: Changing the language in test client

2009-02-15 Thread Malcolm Tredinnick
On Sun, 2009-02-15 at 13:29 -0800, peschler wrote: > Hi, > > i'm currently writing unit tests for an application where I need to > change the language in the test client. > > I tried using the "django.views.i18n.set_language" view within a test > case like so: > > --- > def setUp(self): >

Changing the language in test client

2009-02-15 Thread peschler
Hi, i'm currently writing unit tests for an application where I need to change the language in the test client. I tried using the "django.views.i18n.set_language" view within a test case like so: --- def setUp(self): self.client.post('/set_language/', data={'language': 'de'}) d