Re: [Zope3-Users] functional doctest and testbowser with zopeproject

2009-04-01 Thread Lothar Pfeiler
Thanks Douglas and Marius, For the quick solution and the background. It's working fine. Regards, Lothar 2009/4/1 Marius Gedminas > On Tue, Mar 31, 2009 at 02:09:34PM -0700, Douglas Cerna wrote: > > Hi. > > > > I had a similar error and fixed it modifying: > > > > >>> browser.addHeader('Authori

Re: [Zope3-Users] functional doctest and testbowser with zopeproject

2009-03-31 Thread Marius Gedminas
On Tue, Mar 31, 2009 at 02:09:34PM -0700, Douglas Cerna wrote: > Hi. > > I had a similar error and fixed it modifying: > > >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw') > > To: > > >>> browser.addHeader('Authorization', 'Basic globalmgr:globalmgrpw') > > Both principals are defined

Re: [Zope3-Users] functional doctest and testbowser with zopeproject

2009-03-31 Thread Douglas Cerna
gnu.org/philosophy/no-word-attachments.es.html --- On Tue, 3/31/09, Lothar Pfeiler wrote: > From: Lothar Pfeiler > Subject: [Zope3-Users] functional doctest and testbowser with zopeproject > To: zope3-users@zope.org > Date: Tuesday, March 31, 2009, 8:05 AM > Hi all, > >

[Zope3-Users] functional doctest and testbowser with zopeproject

2009-03-31 Thread Lothar Pfeiler
Hi all, I created my dev environment with zopeproject. I tried to create a functional doctest with the following lines: >>> from zope.testbrowser.testing import Browser >>> browser = Browser() >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw') >>> browser.open('http://localhost/manage')